Another minor bug corrected at toggle.js (sorry)
authorPanos <antoniad@panos.cs.princeton.edu>
Thu, 9 Dec 2010 19:15:34 +0000 (14:15 -0500)
committerPanos <antoniad@panos.cs.princeton.edu>
Thu, 9 Dec 2010 19:15:34 +0000 (14:15 -0500)
plekit/toggle/toggle.js

index 7d302e1..faae1b8 100644 (file)
@@ -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);
 }