* Clicking on the expanded floor div collapses it.
authorArt Cancro <ajc@citadel.org>
Thu, 1 Dec 2005 22:15:56 +0000 (22:15 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 1 Dec 2005 22:15:56 +0000 (22:15 +0000)
webcit/ChangeLog
webcit/static/wclib.js

index 1c9c3b5c68f0a27310b48eaea0072df76fc45fa0..eab62b0e9ef17cf55a4c8a931703ae4da059fe01 100644 (file)
@@ -1,5 +1,8 @@
 $Id$
 
+Thu Dec  1 17:15:32 EST 2005 ajc
+* Clicking on the expanded floor div collapses it.
+
 Thu Dec  1 17:03:15 EST 2005 ajc
 * More style changes to the new room list, mainly with regard to font size
   and line breaks.
index bbcd7c5d3ca9a15e8a1df0c599014864e0b1312c..e0d643c360bc0b7e336bcfbebafa10efe6ad6a7b 100644 (file)
@@ -68,6 +68,10 @@ function expand_floor(floor_div) {
        if (which_div_expanded != null) {
                $(which_div_expanded).style.display = 'none' ;
        }
+       if (which_div_expanded == floor_div) {
+               which_div_expanded = null;
+               return true;
+       }
        $(floor_div).style.display = 'block';
        which_div_expanded = floor_div;
 }