diff options
| author | Rob Hudson | 2010-01-20 07:10:02 -0800 |
|---|---|---|
| committer | Rob Hudson | 2010-01-20 07:10:02 -0800 |
| commit | ddd021bfc101d55a1ed69a5514491296705dda6c (patch) | |
| tree | 04f217b789c117ccba7080cd5324918695ec6056 | |
| parent | 405e56268a98dff64e500233094719092a61606b (diff) | |
| download | django-debug-toolbar-ddd021bfc101d55a1ed69a5514491296705dda6c.tar.bz2 | |
Fixed toolbar loading problem if page does not load jQuery.
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 5b40249..c7e930b 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -15,8 +15,8 @@ /* <![CDATA[ */ // Now that jQuery is done loading, put the '$' variable back to what it was... var $ = _$; - $(document).ready(function() { - $('head').append('<link rel="stylesheet" href="{{ BASE_URL }}/__debug__/m/toolbar.min.css" type="text/css" />'); + jQuery(document).ready(function() { + jQuery('head').append('<link rel="stylesheet" href="{{ BASE_URL }}/__debug__/m/toolbar.min.css" type="text/css" />'); }); /* ]]> */ </script> |
