]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/wclib.js
* Set up a toggleable iconbar that can switch between the menu and a room
[citadel.git] / webcit / static / wclib.js
index 69c0183df81a09bf8cbaab638baa9afb9523edb1..1f10ec063328c4130a747d7309fb5a57571b8e88 100644 (file)
@@ -323,6 +323,8 @@ function CtdlMoveMsgMouseUp(evt) {
        r = parseInt($('dropstuff').offsetLeft) + parseInt($('dropstuff').offsetWidth);
        b = parseInt($('dropstuff').offsetTop) + parseInt($('dropstuff').offsetHeight);
 
+       // alert('Offsets are: ' + l + ' ' + t + ' ' + r + ' ' + b + '.');
+
        if ( (x >= l) && (x <= r) && (y >= t) && (y <= b) ) {
                // Yes, we dropped it on a hotspot.  Just delete for now... FIXME
                CtdlDeleteSelectedMessages(evt);
@@ -352,3 +354,14 @@ function ctdl_ts_getInnerText(el) {
        }
        return str;
 }
+
+
+// icon bar toggler tabs...
+
+function switch_to_room_list() {
+       new Ajax.Updater('iconbar', 'iconbar_ajax_rooms', { method: 'get' } );
+}
+
+function switch_to_menu_buttons() {
+       new Ajax.Updater('iconbar', 'iconbar_ajax_menu', { method: 'get' } );
+}