Use the same method in both places to determine whether the wholist in the iconbar...
authorArt Cancro <ajc@uncensored.citadel.org>
Fri, 13 May 2011 02:11:40 +0000 (22:11 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 20:32:49 +0000 (20:32 +0000)
webcit/static/wclib.js

index 01057a82b3672fed3c1509bbd8e5cc436220ae65..13a7834926b00838d21debbf5f9d86226f76761f 100644 (file)
@@ -899,9 +899,8 @@ function switch_to_lang(new_lang) {
 
 function toggle_wholist() 
 {
-       d = $('online_users').style.display;
-
-       if (d == 'block') {
+       /* WARNING: VILE, SLEAZY HACK.  We determine the state of the box based on the image loaded. */
+       if ( $('expand_wholist').src.substring($('expand_wholist').src.length - 12) == "collapse.gif" ) {
                $('online_users').style.display = 'none';
                $('expand_wholist').src = 'static/expand.gif';
                wstate=0;