From 9922fb491983b6127f21c0b43ee04965ad654deb 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 d373b401a..005e5a27d 100644 --- a/sapl/templates/sessao/painel.html +++ b/sapl/templates/sessao/painel.html @@ -262,8 +262,8 @@ $(function() { function switch_painel(aberto) { 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({ @@ -274,11 +274,11 @@ function switch_painel(aberto) { }); if (aberto) { - 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(); } }