From e0de7eb84c5adac97e1dd1f658e94c6225b3d9db Mon Sep 17 00:00:00 2001
From: Edward <9326037+edwardoliveira@users.noreply.github.com>
Date: Mon, 24 Jun 2019 15:26:16 -0300
Subject: [PATCH] Conserta duplo clique em Chrome (#2848)
---
sapl/materia/views.py | 2 +-
sapl/protocoloadm/views.py | 2 +-
sapl/templates/base.html | 24 ++++++++-----------
.../templates/materia/em_lote/tramitacao.html | 14 -----------
sapl/templates/materia/tramitacao_form.html | 19 ---------------
.../protocoloadm/em_lote/tramitacaoadm.html | 16 +------------
.../tramitacaoadministrativo_form.html | 15 ------------
7 files changed, 13 insertions(+), 79 deletions(-)
delete mode 100644 sapl/templates/materia/tramitacao_form.html
delete mode 100644 sapl/templates/protocoloadm/tramitacaoadministrativo_form.html
diff --git a/sapl/materia/views.py b/sapl/materia/views.py
index eed4b0bf3..739f4c486 100644
--- a/sapl/materia/views.py
+++ b/sapl/materia/views.py
@@ -1224,7 +1224,7 @@ class TramitacaoCrud(MasterDetailCrud):
# não pode ser modificado
if not primeira_tramitacao:
context['form'].fields[
- 'unidade_tramitacao_local'].widget.attrs['disabled'] = True
+ 'unidade_tramitacao_local'].widget.attrs['readonly'] = True
return context
diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py
index 2caab21ab..b5af92621 100755
--- a/sapl/protocoloadm/views.py
+++ b/sapl/protocoloadm/views.py
@@ -1160,7 +1160,7 @@ class TramitacaoAdmCrud(MasterDetailCrud):
# não pode ser modificado
if not primeira_tramitacao:
context['form'].fields[
- 'unidade_tramitacao_local'].widget.attrs['disabled'] = True
+ 'unidade_tramitacao_local'].widget.attrs['readonly'] = True
return context
def form_valid(self, form):
diff --git a/sapl/templates/base.html b/sapl/templates/base.html
index 04a5c295a..8eaaede66 100644
--- a/sapl/templates/base.html
+++ b/sapl/templates/base.html
@@ -230,11 +230,9 @@
{% block webpack_loader_chunks_js %}
{% endblock webpack_loader_chunks_js %}
- {% block extra_js %}{% endblock %}
+ {% block extra_js %}{% endblock extra_js %}
{% endblock foot_js %}
-