From: Panos Date: Thu, 9 Dec 2010 19:15:34 +0000 (-0500) Subject: Another minor bug corrected at toggle.js (sorry) X-Git-Tag: plewww-4.3-57~1 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=71a3afc2cbb7e8a94a762afaf703120ae2742d86 Another minor bug corrected at toggle.js (sorry) --- diff --git a/plekit/toggle/toggle.js b/plekit/toggle/toggle.js index 7d302e1..faae1b8 100644 --- a/plekit/toggle/toggle.js +++ b/plekit/toggle/toggle.js @@ -24,6 +24,15 @@ function plc_show_toggle_info(div, id) { if (document.getElementById(div).style.display == "none") document.getElementById(div).style.display = ""; + else + document.getElementById(div).style.display = "none"; - plc_toggle(id); + if(! area.visible()){ + area.toggle(); + visible.show(); + hidden.hide(); + document.getElementById(div).style.display = ""; + } + + //plc_toggle(id); }