File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
templates/debug_toolbar/panels Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 98
98
return false ;
99
99
} ) ;
100
100
101
- // Used by the SQL panel -- in HTML generated by Python code
102
- $ ( '#djDebug a.djDebugToggle' ) . live ( 'click' , function ( e ) {
103
- e . preventDefault ( ) ;
104
- $ ( this ) . parent ( ) . find ( '.djDebugCollapsed' ) . toggle ( ) ;
105
- $ ( this ) . parent ( ) . find ( '.djDebugUncollapsed' ) . toggle ( ) ;
106
- } ) ;
107
-
108
101
// Used by the cache, profiling and SQL panels
109
102
$ ( '#djDebug a.djToggleSwitch' ) . live ( 'click' , function ( e ) {
110
103
e . preventDefault ( ) ;
Original file line number Diff line number Diff line change
1
+ ( function ( factory ) {
2
+ if ( typeof define === 'function' && define . amd ) {
3
+ define ( [ 'jquery' ] , factory ) ;
4
+ } else {
5
+ factory ( jQuery ) ;
6
+ }
7
+ } ( function ( $ ) {
8
+ $ ( '#djDebug a.djDebugToggle' ) . on ( 'click' , function ( e ) {
9
+ e . preventDefault ( ) ;
10
+ $ ( this ) . parent ( ) . find ( '.djDebugCollapsed' ) . toggle ( ) ;
11
+ $ ( this ) . parent ( ) . find ( '.djDebugUncollapsed' ) . toggle ( ) ;
12
+ } ) ;
13
+ } ) ) ;
Original file line number Diff line number Diff line change 92
92
{% else %}
93
93
< p > {% trans "No SQL queries were recorded during this request." %}</ p >
94
94
{% endif %}
95
+
96
+ < script src ="{{ STATIC_URL }}debug_toolbar/js/toolbar.sql.js "> </ script >
You can’t perform that action at this time.
0 commit comments