From 4b37051c2a345b03c0fbecf057829f3c6a5f8ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Thu, 2 Jul 2020 11:57:53 -0300 Subject: [PATCH] =?UTF-8?q?Remove=20verifica=C3=A7=C3=A3o=20de=20form=20at?= =?UTF-8?q?rav=C3=A9s=20do=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/templates/norma/normajuridica_form.html | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/sapl/templates/norma/normajuridica_form.html b/sapl/templates/norma/normajuridica_form.html index fb03bbad5..0355faee8 100644 --- a/sapl/templates/norma/normajuridica_form.html +++ b/sapl/templates/norma/normajuridica_form.html @@ -17,20 +17,15 @@ numero_materia: numero_materia, ano_materia: ano_materia }, (data, status) => { - if ($(location).attr('pathname').split("/")[2] == "create") { + $("#id_fundo_confirmacao_mudanca_ementa_indexacao").fadeIn(); + $("#id_sim_mudanca_ementa_indexacao").click(() => { $("#id_ementa").val(data.ementa); $("#id_indexacao").val(data.indexacao); - } else { - $("#id_fundo_confirmacao_mudanca_ementa_indexacao").fadeIn(); - $("#id_sim_mudanca_ementa_indexacao").click(() => { - $("#id_ementa").val(data.ementa); - $("#id_indexacao").val(data.indexacao); - $("#id_fundo_confirmacao_mudanca_ementa_indexacao").hide(); - }); - $("#id_nao_mudanca_ementa_indexacao").click(() => { - $("#id_fundo_confirmacao_mudanca_ementa_indexacao").hide(); - }); - } + $("#id_fundo_confirmacao_mudanca_ementa_indexacao").hide(); + }); + $("#id_nao_mudanca_ementa_indexacao").click(() => { + $("#id_fundo_confirmacao_mudanca_ementa_indexacao").hide(); + }); }); } }