diff options
Diffstat (limited to 'debug_toolbar')
| -rw-r--r-- | debug_toolbar/static/debug_toolbar/js/toolbar.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index 2a6df02..9f8523c 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -1,4 +1,4 @@ -(function ($) { +(function ($, publicAPI) { var djdt = { handleDragged: false, events: { @@ -280,5 +280,11 @@ } } }; + $.extend(publicAPI, { + show_toolbar: djdt.show_toolbar, + hide_toolbar: djdt.hide_toolbar, + close: djdt.close, + cookie: djdt.cookie + }); $(document).ready(djdt.init); -})(djdt.jQuery); +})(djdt.jQuery, djdt); |
