From 37a3a86d87a543904dd603086ec1f72636c8180f Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Mon, 10 Oct 2016 12:00:09 -0300 Subject: [PATCH] =?UTF-8?q?Conserta=20bug=20na=20edi=C3=A7=C3=A3o=20de=20S?= =?UTF-8?q?ess=C3=A3o=20Plen=C3=A1ria=20no=20campo=20Sessao=20Legislativa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/templates/sessao/sessaoplenaria_form.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sapl/templates/sessao/sessaoplenaria_form.html b/sapl/templates/sessao/sessaoplenaria_form.html index d192d63dc..c5f955094 100644 --- a/sapl/templates/sessao/sessaoplenaria_form.html +++ b/sapl/templates/sessao/sessaoplenaria_form.html @@ -32,16 +32,17 @@ $("#id_legislatura").ready(function(){ var id_legislatura = $("#id_legislatura").val(); + var id_sessao_leg = $("#id_sessao_legislativa").val(); $("#id_sessao_legislativa option").remove(); if (id_legislatura) { - $.get("/sessao-legislativa-legislatura-ajax", {legislatura: id_legislatura}, function(data) { + $.get("/sessao/sessao-legislativa-legislatura-ajax", {legislatura: id_legislatura}, function(data) { lista_sessoes = data['sessao_legislativa']; $('#id_sessao_legislativa').append(''); for (i = 0; i < lista_sessoes.length; i++) { $('#id_sessao_legislativa').append(''); } - + $("#id_sessao_legislativa").val(id_sessao_leg); }); } else{