diff options
| author | Alex Gaynor | 2009-03-27 09:16:27 -0500 |
|---|---|---|
| committer | Alex Gaynor | 2009-03-27 09:16:27 -0500 |
| commit | f1a18353afd9876bc4f5f642f187581496530039 (patch) | |
| tree | b528e2cc72aa562b2ee2e091ba8a0cda8282bbd1 /debug_toolbar/templates | |
| parent | 671bac94182b000be3960dc7c83e89ccef7ccf26 (diff) | |
| parent | b9b0cbe718c6a1736af1fa86452ffc4af28b64f4 (diff) | |
| download | django-debug-toolbar-f1a18353afd9876bc4f5f642f187581496530039.tar.bz2 | |
Merge commit 'rob/master'
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 7277620..52b7a5b 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -1,10 +1,17 @@ <script type="text/javascript" charset="utf-8"> + // When jQuery is sourced, it's going to overwrite whatever might be in the + // '$' variable, so store a reference of it in a temporary variable... + var _$ = window.$; if (typeof jQuery == 'undefined') { var jquery_url = '{{ BASE_URL }}/__debug__/m/jquery.js'; document.write(unescape('%3Cscript src="' + jquery_url + '" type="text/javascript"%3E%3C/script%3E')); } </script> <script type="text/javascript" src="{{ BASE_URL }}/__debug__/m/toolbar.min.js"></script> +<script type="text/javascript" charset="utf-8"> + // Now that jQuery is done loading, put the '$' variable back to what it was... + var $ = _$; +</script> <style type="text/css"> @import url({{ BASE_URL }}/__debug__/m/toolbar.min.css); </style> |
