From 23a8ef6c6455c6f38fb9e5063139cacb67be3837 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 1 Dec 2005 22:15:56 +0000 Subject: [PATCH] * Clicking on the expanded floor div collapses it. --- webcit/ChangeLog | 3 +++ webcit/static/wclib.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 1c9c3b5c6..eab62b0e9 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -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. diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index bbcd7c5d3..e0d643c36 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -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; } -- 2.39.2