X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fwclib.js;h=8b9f83bf1429f0889f6115e4207a7a9f68fa4feb;hb=487033d5d66725f33769bd505eb73af5911e35fb;hp=22ae75d6cc67a20127ddc1907ecb8bd61ec993ee;hpb=64070dd0aa2f44edcf1b8041cac3ff000fb383a3;p=citadel.git diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 22ae75d6c..8b9f83bf1 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -176,6 +176,7 @@ function setupIconBar() { /* WARNING: VILE, SLEAZY HACK. We determine the state of the box based on the image loaded. */ if ( $('expand_roomlist').src.substring($('expand_roomlist').src.length - 12) == "collapse.gif" ) { $('roomlist').style.display = 'block'; + $('roomlist').innerHTML = ''; FillRooms(IconBarRoomList); } else { @@ -886,6 +887,7 @@ function toggle_roomlist() else { $('roomlist').style.display = 'block'; $('expand_roomlist').src = 'static/collapse.gif'; + $('roomlist').innerHTML = ''; FillRooms(IconBarRoomList); wstate=1; }