diff options
| author | Jacob Kaplan-Moss | 2008-09-15 18:02:17 +0100 | 
|---|---|---|
| committer | Jacob Kaplan-Moss | 2008-09-15 18:02:17 +0100 | 
| commit | 5fd534e68dbd191c5d6062a39ae512b109cccbdb (patch) | |
| tree | 84eb90f2d418b321540e145e9f17e5c95f70208c /debug_toolbar/media/toolbar.js | |
| parent | a77ee9cee43ec01f43bebc71ad64702fa110b475 (diff) | |
| download | django-debug-toolbar-5fd534e68dbd191c5d6062a39ae512b109cccbdb.tar.bz2 | |
Modified scripts to use jQuery, and moved 'em to a better place.
Diffstat (limited to 'debug_toolbar/media/toolbar.js')
| -rw-r--r-- | debug_toolbar/media/toolbar.js | 15 | 
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; +    }) +});  | 
