From db62fbe4af73297698d0e716e4478f9662c813ce Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 16 Sep 2008 07:37:07 -0700 Subject: Updating toolbar.js to close panel on 2nd click. --- debug_toolbar/media/toolbar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'debug_toolbar') diff --git a/debug_toolbar/media/toolbar.js b/debug_toolbar/media/toolbar.js index 8c0a86d..7e974d2 100644 --- a/debug_toolbar/media/toolbar.js +++ b/debug_toolbar/media/toolbar.js @@ -2,7 +2,11 @@ jQuery.noConflict(); jQuery(document).ready(function() { var current = null; jQuery('#djDebugPanelList li a').click(function() { - if (current) { current.hide(); } + if (current) { + current.hide(); + current = null; + return false; + } current = jQuery('#djDebug #' + this.className); current.show(); return false; -- cgit v1.2.3