From 70d3aa1b8c12d614f2ca1b1b550bb605d8c8a506 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 15 Nov 2013 20:14:40 +0100 Subject: Make panels behave more like Django middleware. --- debug_toolbar/static/debug_toolbar/js/toolbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug_toolbar/static') 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, }); }); -- cgit v1.2.3