diff options
| -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; }); }); |
