diff --git a/sapl/templates/painel/index.html b/sapl/templates/painel/index.html index 798e5c6b7..6be08b115 100644 --- a/sapl/templates/painel/index.html +++ b/sapl/templates/painel/index.html @@ -99,9 +99,9 @@

Matéria em Votação

- - - + + +

@@ -284,10 +284,10 @@ $("#resultado_votacao").text(data["tipo_resultado"]); $("#resultado_votacao").css("color", "#45919D"); var resultado_votacao_upper = $("#resultado_votacao").text().toUpperCase(); - if (resultado_votacao_upper.search("APROV") != (-1)){ + if (resultado_votacao_upper.search("APROV") != -1){ $("#resultado_votacao").css("color", "green"); } - if (resultado_votacao_upper.search("REJEIT") != (-1)){ + if (resultado_votacao_upper.search("REJEIT") != -1){ $("#resultado_votacao").css("color", "red"); } } diff --git a/sapl/templates/sessao/votacao/nominal.html b/sapl/templates/sessao/votacao/nominal.html index b7716e57e..940f00396 100644 --- a/sapl/templates/sessao/votacao/nominal.html +++ b/sapl/templates/sessao/votacao/nominal.html @@ -84,25 +84,20 @@ var votos_nao = 0; var votos_abstencao = 0; var nao_votou = 0; - //alert($("#voto_parlamentar").text()); $('[name=voto_parlamentar]').each(function() { if (($(this).is(':hidden')) == false) { switch ($(this).val().substring(0,4)) { case "Sim:": votos_sim = votos_sim + 1; - //alert("votos sim: " + votos_sim); break; case "Não:": votos_nao = votos_nao + 1; - //alert("votos não: " + votos_sim); break; case "Abst": votos_abstencao = votos_abstencao + 1; - //alert("abstenções: " + votos_abstencao); break; case "Não ": nao_votou = nao_votou + 1; - //alert("ainda não votaram: " + nao_votou); break; }; };