aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/media/toolbar.js
diff options
context:
space:
mode:
authorRob Hudson2008-09-16 07:00:29 -0700
committerRob Hudson2008-09-16 07:00:29 -0700
commit96ca83db5686f5b8983e7b008a698307130e58c9 (patch)
tree7dcce0b3865e3599e5e58599a8bef799b2370e3f /debug_toolbar/media/toolbar.js
parent4591e34f0140c43e68e4ecd97eae7f3ea05878f6 (diff)
parent5fd534e68dbd191c5d6062a39ae512b109cccbdb (diff)
downloaddjango-debug-toolbar-96ca83db5686f5b8983e7b008a698307130e58c9.tar.bz2
Merge branch 'master' into explain and updating a few bits to work with the new
urls and views.
Diffstat (limited to 'debug_toolbar/media/toolbar.js')
-rw-r--r--debug_toolbar/media/toolbar.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/debug_toolbar/media/toolbar.js b/debug_toolbar/media/toolbar.js
new file mode 100644
index 0000000..8c0a86d
--- /dev/null
+++ b/debug_toolbar/media/toolbar.js
@@ -0,0 +1,15 @@
+jQuery.noConflict();
+jQuery(document).ready(function() {
+ var current = null;
+ jQuery('#djDebugPanelList li a').click(function() {
+ if (current) { current.hide(); }
+ current = jQuery('#djDebug #' + this.className);
+ current.show();
+ return false;
+ });
+ jQuery('#djDebug a.close').click(function() {
+ if (current) { current.hide(); }
+ current = null;
+ return false;
+ })
+});