diff options
| author | Matt George | 2008-09-07 12:02:04 -0700 |
|---|---|---|
| committer | Matt George | 2008-09-07 12:02:04 -0700 |
| commit | a898eaae5e8d57c25a7ea1723d828e24e543f56e (patch) | |
| tree | 509dd7582a178437aaf7d4aa7f2aa8ad025921e3 /debug_toolbar/templates | |
| parent | 571a5196ef049cc1a948370753528a864653a7c0 (diff) | |
| download | django-debug-toolbar-a898eaae5e8d57c25a7ea1723d828e24e543f56e.tar.bz2 | |
changed js to hide currently showing debug panel
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index da037fc..9ebf9cc 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -7,8 +7,14 @@ $(document).ready(function() { }); $('#djDebugPanelList a').click(function() { var panel_id = $(this).attr('class'); + visible = $('#' + panel_id).is(':visible') + $('.panelContent').hide(); - $('#' + panel_id).show(); + if(visible){ + $('#' + panel_id).hide(); + } else { + $('#' + panel_id).show(); + } return false; }); }); |
