Skip to content

Commit ef9ac33

Browse files
committed
rm .djDebugToggle
This is duplicated functionality. You can already toggle the entries using .djToggleSwitch
1 parent 1a9b8db commit ef9ac33

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

debug_toolbar/panels/sql/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def reformat_sql(sql):
3030
def swap_fields(sql):
3131
expr = r'SELECT</strong> (...........*?) <strong>FROM'
3232
subs = (r'SELECT</strong> '
33-
r'<a class="djDebugUncollapsed djDebugToggle" href="#">&#8226;&#8226;&#8226;</a> '
34-
r'<a class="djDebugCollapsed djDebugToggle" href="#">\1</a> '
33+
r'<span class="djDebugUncollapsed" href="#">&#8226;&#8226;&#8226;</span> '
34+
r'<span class="djDebugCollapsed" href="#">\1</span> '
3535
r'<strong>FROM')
3636
return re.sub(expr, subs, sql)
3737

debug_toolbar/static/debug_toolbar/js/toolbar.sql.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
(function ($) {
2-
$('#djDebug a.djDebugToggle').on('click', function(event) {
3-
event.preventDefault();
4-
$(this).parent().find('.djDebugCollapsed').toggle();
5-
$(this).parent().find('.djDebugUncollapsed').toggle();
6-
});
72
djdt.applyStyle('background-color');
83
djdt.applyStyle('left');
94
djdt.applyStyle('width');

0 commit comments

Comments
 (0)