Skip to content

Commit ddd021b

Browse files
committed
Fixed toolbar loading problem if page does not load jQuery.
1 parent 405e562 commit ddd021b

File tree

1 file changed

+2
-2
lines changed
  • debug_toolbar/templates/debug_toolbar

1 file changed

+2
-2
lines changed

debug_toolbar/templates/debug_toolbar/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
/* <![CDATA[ */
1616
// Now that jQuery is done loading, put the '$' variable back to what it was...
1717
var $ = _$;
18-
$(document).ready(function() {
19-
$('head').append('<link rel="stylesheet" href="http://github.com/%7B%7B%20BASE_URL%20%7D%7D/__debug__/m/toolbar.min.css" type="text/css" />');
18+
jQuery(document).ready(function() {
19+
jQuery('head').append('<link rel="stylesheet" href="http://github.com/%7B%7B%20BASE_URL%20%7D%7D/__debug__/m/toolbar.min.css" type="text/css" />');
2020
});
2121
/* ]]> */
2222
</script>

0 commit comments

Comments
 (0)