aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/static/debug_toolbar/js/toolbar.sql.js')
-rw-r--r--debug_toolbar/static/debug_toolbar/js/toolbar.sql.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js b/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js
index c554bce..e470ac8 100644
--- a/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js
+++ b/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js
@@ -1,13 +1,7 @@
-(function (factory) {
- if (typeof define === 'function' && define.amd) {
- define(['jquery'], factory);
- } else {
- factory(jQuery);
- }
-}(function ($) {
+(function ($) {
$('#djDebug a.djDebugToggle').on('click', function(e) {
e.preventDefault();
$(this).parent().find('.djDebugCollapsed').toggle();
$(this).parent().find('.djDebugUncollapsed').toggle();
});
-}));
+})(djdt.jQuery);