]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/wclib.js
* Made the iconbar room list somewhat usable (collapse/expand). It is not yet
[citadel.git] / webcit / static / wclib.js
index a3bb8adeb89347b7176cf6fcdd188bc281492c2e..2464fff089c58586d989355d395310fd71cc7adf 100644 (file)
@@ -358,9 +358,18 @@ function ctdl_ts_getInnerText(el) {
 
 // icon bar toggler tabs...
 
+var which_div_expanded = null;
+
 function switch_to_room_list() {
        new Ajax.Updater('iconbar', 'iconbar_ajax_rooms', { method: 'get' } );
-       fuckitup();
+}
+
+function expand_floor(floor_div) {
+       if (which_div_expanded != null) {
+               $(which_div_expanded).style.display = 'none' ;
+       }
+       $(floor_div).style.display = 'block';
+       which_div_expanded = floor_div;
 }
 
 function switch_to_menu_buttons() {