diff options
| author | Rob Hudson | 2008-09-16 07:37:07 -0700 |
|---|---|---|
| committer | Rob Hudson | 2008-09-16 07:37:07 -0700 |
| commit | db62fbe4af73297698d0e716e4478f9662c813ce (patch) | |
| tree | 0c5165d7758d545f1520a3c01a3db1d2af035457 | |
| parent | 5fd534e68dbd191c5d6062a39ae512b109cccbdb (diff) | |
| download | django-debug-toolbar-db62fbe4af73297698d0e716e4478f9662c813ce.tar.bz2 | |
Updating toolbar.js to close panel on 2nd click.
| -rw-r--r-- | debug_toolbar/media/toolbar.js | 6 |
1 files changed, 5 insertions, 1 deletions
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; |
