diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index b126f4ca7..2b66849a7 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -432,9 +432,11 @@ class ExpedienteMateriaCrud(MasterDetailCrud): if self.request.user.has_module_perms(AppConfig.label): btn_registrar = ''' - - Registrar Votação''' % (url) +
+ ''' % (url) obj.resultado = btn_registrar else: url = reverse('sapl.sessao:abrir_votacao', kwargs={ diff --git a/sapl/templates/sessao/expedientemateria_list.html b/sapl/templates/sessao/expedientemateria_list.html index 726b9c64e..51f2815d5 100644 --- a/sapl/templates/sessao/expedientemateria_list.html +++ b/sapl/templates/sessao/expedientemateria_list.html @@ -45,6 +45,11 @@ setTimeout(function(){ window.location.reload(true) }, 500); } }); + $(window).on('beforeunload', function () { + $('tbody').sortable('disable'); + $("input[type=submit], input[type=button]").prop("disabled", "disabled"); + }); + {% endblock %}