File tree 1 file changed +8
-1
lines changed
debug_toolbar/templates/debug_toolbar
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
@media print { # djDebug {display : none;}}
4
4
</ style >
5
5
< link rel ="stylesheet " href ="{{ STATIC_URL }}debug_toolbar/css/toolbar.min.css " type ="text/css " />
6
- < script > window . jQuery || document . write ( '<script src="{{ STATIC_URL }}debug_toolbar/js/jquery.js"><\/script>' ) </ script >
6
+ < script >
7
+ if ( ! window . jQuery ) {
8
+ var script = document . createElement ( 'script' ) ;
9
+ script . src = "{{ STATIC_URL }}debug_toolbar/js/jquery.js" ;
10
+ var exist = document . getElementsByTagName ( 'script' ) [ 0 ] ;
11
+ exist . parentNode . insertBefore ( script , exist ) ;
12
+ }
13
+ </ script >
7
14
< script src ="{{ STATIC_URL }}debug_toolbar/js/jquery.cookie.js "> </ script >
8
15
< script src ="{{ STATIC_URL }}debug_toolbar/js/toolbar.js "> </ script >
9
16
< div id ="djDebug " style ="display:none; " dir ="ltr " {{ TOOLBAR_ROOT_TAG_ATTRS|safe }} >
You can’t perform that action at this time.
0 commit comments