diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index fff7a2f41..487e9c68d 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -312,12 +312,6 @@ return value; } }, - applyStyle: function(name) { - var selector = '#djDebug [data-' + name + ']'; - document.querySelectorAll(selector).forEach(function(element) { - element.style[name] = element.getAttribute('data-' + name); - }); - } }; window.djdt = { show_toolbar: djdt.show_toolbar, @@ -325,7 +319,6 @@ init: djdt.init, close: djdt.hide_one_level, cookie: djdt.cookie, - applyStyle: djdt.applyStyle }; document.addEventListener('DOMContentLoaded', djdt.init); })(); diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.profiling.js b/debug_toolbar/static/debug_toolbar/js/toolbar.profiling.js deleted file mode 100644 index 5823cfbcd..000000000 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.profiling.js +++ /dev/null @@ -1,3 +0,0 @@ -(function () { - djdt.applyStyle('padding-left'); -})(); diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js b/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js deleted file mode 100644 index 65093c8ee..000000000 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js +++ /dev/null @@ -1,5 +0,0 @@ -(function () { - djdt.applyStyle('background-color'); - djdt.applyStyle('left'); - djdt.applyStyle('width'); -})(); diff --git a/debug_toolbar/templates/debug_toolbar/panels/profiling.html b/debug_toolbar/templates/debug_toolbar/panels/profiling.html index 953f8477f..4073cff41 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/profiling.html +++ b/debug_toolbar/templates/debug_toolbar/panels/profiling.html @@ -14,7 +14,7 @@ {% for call in func_list %}
{% trans "No SQL queries were recorded during this request." %}
{% endif %} - - diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index 0c6124c41..2f8d90c1f 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -33,5 +33,3 @@