diff options
| author | Aymeric Augustin | 2013-11-15 20:14:40 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-15 20:33:51 +0100 |
| commit | 70d3aa1b8c12d614f2ca1b1b550bb605d8c8a506 (patch) | |
| tree | 00df40543a7e7a3b509dfb3bc2c9efb1f3736e05 /debug_toolbar/static | |
| parent | 5f54e2d88a12ec7fa06bd2a9dd54e1af2f0b50f7 (diff) | |
| download | django-debug-toolbar-70d3aa1b8c12d614f2ca1b1b550bb605d8c8a506.tar.bz2 | |
Make panels behave more like Django middleware.
Diffstat (limited to 'debug_toolbar/static')
| -rw-r--r-- | debug_toolbar/static/debug_toolbar/js/toolbar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index e062f9e..3e0913b 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -58,9 +58,9 @@ return false; }); $('#djDebug .djDebugPanelButton input[type=checkbox]').live('click', function() { - $.cookie($(this).attr('data-cookie'), 'off', { + $.cookie($(this).attr('data-cookie'), $(this).prop('checked') ? 'on' : 'off', { path: '/', - expires: $(this).prop('checked') ? -1 : 10 + expires: 10, }); }); |
