From 55d4ae134bd08bd3c1ab323e6761e82f18b47d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Sconetto?= Date: Tue, 26 Sep 2017 14:37:16 -0300 Subject: [PATCH] =?UTF-8?q?Pequena=20corre=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/templates/sessao/painel.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sapl/templates/sessao/painel.html b/sapl/templates/sessao/painel.html index deeb1b140..d373b401a 100644 --- a/sapl/templates/sessao/painel.html +++ b/sapl/templates/sessao/painel.html @@ -284,8 +284,8 @@ function switch_painel(aberto) { $(document).ready(function(){ var pk_sessao = {{root_pk}}; - var botao_abrir = document.getElementById('id_abrir_painel'); - var botao_fechar = document.getElementById('id_fechar_painel'); + var botao_abrir = $('#id_abrir_painel'); + var botao_fechar = $('#id_fechar_painel'); $.ajax({ data: {pk_sessao: pk_sessao}, @@ -297,11 +297,11 @@ $(document).ready(function(){ }, success: function (data) { if (data['status']) { - botao_abrir.style.display = 'none'; - botao_fechar.style.display = 'block'; + botao_abrir.hide(); + botao_fechar.show(); } else { - botao_abrir.style.display = 'block'; - botao_fechar.style.display = 'none'; + botao_abrir.show(); + botao_fechar.hide(); } }, });