Removed spurious 'Loading...' label from expanded roomlist
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 17 May 2011 20:32:57 +0000 (16:32 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 20:45:14 +0000 (20:45 +0000)
webcit/static/wclib.js

index 22ae75d6cc67a20127ddc1907ecb8bd61ec993ee..8b9f83bf1429f0889f6115e4207a7a9f68fa4feb 100644 (file)
@@ -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;
        }