File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
templates/debug_toolbar/panels Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ const djdt = {
97
97
event . preventDefault ( ) ;
98
98
const self = this ;
99
99
const id = this . dataset . toggleId ;
100
- const open_me = this . textContent === this . dataset . toggleOpen ;
100
+ const toggleOpen = "+" ;
101
+ const toggleClose = "-" ;
102
+ const open_me = this . textContent === toggleOpen ;
101
103
const name = this . dataset . toggleName ;
102
104
const container = this . closest (
103
105
".djDebugPanelContent"
@@ -118,11 +120,11 @@ const djdt = {
118
120
if ( open_me ) {
119
121
e . classList . add ( "djSelected" ) ;
120
122
e . classList . remove ( "djUnselected" ) ;
121
- self . textContent = self . dataset . toggleClose ;
123
+ self . textContent = toggleClose ;
122
124
} else {
123
125
e . classList . remove ( "djSelected" ) ;
124
126
e . classList . add ( "djUnselected" ) ;
125
- self . textContent = self . dataset . toggleOpen ;
127
+ self . textContent = toggleOpen ;
126
128
}
127
129
const switch_ = e . querySelector ( ".djToggleSwitch" ) ;
128
130
if ( switch_ ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ <h4>{% trans "Calls" %}</h4>
51
51
{% for call in calls %}
52
52
< tr id ="cacheMain_{{ forloop.counter }} ">
53
53
< td class ="djdt-toggle ">
54
- < a class ="djToggleSwitch " data-toggle-name ="cacheMain " data-toggle-id ="{{ forloop.counter }} " data-toggle-open =" + " data-toggle-close =" - " href > +</ a >
54
+ < a class ="djToggleSwitch " data-toggle-name ="cacheMain " data-toggle-id ="{{ forloop.counter }} " href > +</ a >
55
55
</ td >
56
56
< td > {{ call.time|floatformat:"4" }}</ td >
57
57
< td > {{ call.name|escape }}</ td >
Original file line number Diff line number Diff line change 10
10
< p > {{ store_context.toolbar.stats.HistoryPanel.request_url|truncatechars:100|escape }}</ p >
11
11
</ td >
12
12
< td >
13
- < a class ="djToggleSwitch " data-toggle-name ="historyMain " data-toggle-id ="{{ id }} " data-toggle-open =" + " data-toggle-close =" - " href > +</ a >
13
+ < a class ="djToggleSwitch " data-toggle-name ="historyMain " data-toggle-id ="{{ id }} " href > +</ a >
14
14
< div class ="djUnselected djToggleDetails_{{ id }} ">
15
15
< table >
16
16
< colgroup >
Original file line number Diff line number Diff line change 16
16
< td >
17
17
< div style ="padding-left:{{ call.indent }}px ">
18
18
{% if call.has_subfuncs %}
19
- < a class ="djProfileToggleDetails djToggleSwitch " data-toggle-name ="profilingMain " data-toggle-id ="{{ call.id }} " data-toggle-open =" + " data-toggle-close =" - " href > -</ a >
19
+ < a class ="djProfileToggleDetails djToggleSwitch " data-toggle-name ="profilingMain " data-toggle-id ="{{ call.id }} " href > -</ a >
20
20
{% else %}
21
21
< span class ="djNoToggleSwitch "> </ span >
22
22
{% endif %}
Original file line number Diff line number Diff line change 34
34
< tr class ="{% if query.is_slow %} djDebugRowWarning{% endif %} " id ="sqlMain_{{ forloop.counter }} ">
35
35
< td > < span class ="djdt-color " style ="background-color:rgb({{ query.rgb_color|join:', '}}) "> </ span > </ td >
36
36
< td class ="djdt-toggle ">
37
- < a class ="djToggleSwitch " data-toggle-name ="sqlMain " data-toggle-id ="{{ forloop.counter }} " data-toggle-open =" + " data-toggle-close =" - " href =""> +</ a >
37
+ < a class ="djToggleSwitch " data-toggle-name ="sqlMain " data-toggle-id ="{{ forloop.counter }} " href =""> +</ a >
38
38
</ td >
39
39
< td class ="djdt-query ">
40
40
< div class ="djDebugSqlWrap ">
You can’t perform that action at this time.
0 commit comments