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(){