From 1a50baa73c425af0861e99aa04a71a5652f79c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Sconetto?= Date: Mon, 30 Oct 2017 09:01:11 -0200 Subject: [PATCH] =?UTF-8?q?Bloqueia=20ressubmiss=C3=A3o=20de=20vota=C3=A7?= =?UTF-8?q?=C3=A3o=20nominal=20(via=20JS)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/templates/sessao/votacao/nominal.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sapl/templates/sessao/votacao/nominal.html b/sapl/templates/sessao/votacao/nominal.html index 838747999..ad494dae5 100644 --- a/sapl/templates/sessao/votacao/nominal.html +++ b/sapl/templates/sessao/votacao/nominal.html @@ -69,5 +69,10 @@ function voltar() { window.history.back(); } + + $(window).on('beforeunload', function () { + $("input[type=submit], input[type=button]").prop("disabled", "disabled"); + }); + {% endblock extra_js%}