From 39481e320b651ef242c9bab8920732aedae4fcf9 Mon Sep 17 00:00:00 2001 From: Talitha Pumar Date: Wed, 31 Oct 2018 12:07:33 -0300 Subject: [PATCH 1/3] Update voto_nominal.html --- sapl/templates/painel/voto_nominal.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/templates/painel/voto_nominal.html b/sapl/templates/painel/voto_nominal.html index 1330b95ac..68598be73 100644 --- a/sapl/templates/painel/voto_nominal.html +++ b/sapl/templates/painel/voto_nominal.html @@ -165,7 +165,7 @@ startTime(); setTimeout(function() { - // document.location.reload(true); + document.location.reload(true); }, 30000) }); From 8da5e04645ee7feed36a3aeb01515bb95710e844 Mon Sep 17 00:00:00 2001 From: Talitha Pumar Date: Wed, 31 Oct 2018 13:55:47 -0300 Subject: [PATCH 2/3] Update voto_nominal.html --- sapl/templates/painel/voto_nominal.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/templates/painel/voto_nominal.html b/sapl/templates/painel/voto_nominal.html index 68598be73..f021e7afa 100644 --- a/sapl/templates/painel/voto_nominal.html +++ b/sapl/templates/painel/voto_nominal.html @@ -86,11 +86,11 @@
-
+
  -
+
  -
+


From 59627873fbc7ebb3295ff1be80a961dba4e69607 Mon Sep 17 00:00:00 2001 From: Talitha Date: Thu, 1 Nov 2018 12:23:11 -0300 Subject: [PATCH 3/3] tira getelementbyclassname --- sapl/templates/painel/voto_nominal.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sapl/templates/painel/voto_nominal.html b/sapl/templates/painel/voto_nominal.html index f021e7afa..9b76a1766 100644 --- a/sapl/templates/painel/voto_nominal.html +++ b/sapl/templates/painel/voto_nominal.html @@ -134,15 +134,16 @@ $( "#votoabstencao" ).mouseleave(function(){document.location.reload(true);}); $(document).on('keyup', (e) => {if (e.keyCode == 83){ - document.getElementsByClassName("btn btn-lg btn-success")[0].click() + document.querySelectorAll("#votosim input")[0].click(); + };}); $(document).on('keyup', (e) => {if (e.keyCode == 78){ - document.getElementsByClassName("btn btn-lg btn-danger")[0].click() + document.querySelectorAll("#votonao input")[0].click(); };}); $(document).on('keyup', (e) => {if (e.keyCode == 65){ - document.getElementsByClassName("btn btn-lg btn-secondary")[0].click() + document.querySelectorAll("#votoabstencao input")[0].click(); };}); - + $(document).ready( function(){