diff options
Diffstat (limited to 'debug_toolbar/media/toolbar.js')
| -rw-r--r-- | debug_toolbar/media/toolbar.js | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/debug_toolbar/media/toolbar.js b/debug_toolbar/media/toolbar.js index dcd52ae..b6baa2c 100644 --- a/debug_toolbar/media/toolbar.js +++ b/debug_toolbar/media/toolbar.js @@ -42,9 +42,9 @@ jQuery(function($) { $('#djShowToolBarButton').click(function() { $.djDebug.show_toolbar(); }); - if($.cookie(COOKIE_NAME)){ + if ($.cookie(COOKIE_NAME)) { $.djDebug.hide_toolbar(false); - }else{ + } else { $('#djDebugToolbar').show(); } }, @@ -69,14 +69,20 @@ jQuery(function($) { hide_toolbar: function(setCookie) { $('#djDebugToolbar').hide("fast"); $('#djDebugToolbarHandle').show(); - if(setCookie){ - $.cookie(COOKIE_NAME, 'hide', {path: '/', expires: 10 }); + if (setCookie) { + $.cookie(COOKIE_NAME, 'hide', { + path: '/', + expires: 10 + }); } }, show_toolbar: function() { $('#djDebugToolbarHandle').hide(); $('#djDebugToolbar').show("fast"); - $.cookie(COOKIE_NAME, null, {path: '/', expires: -1 }); + $.cookie(COOKIE_NAME, null, { + path: '/', + expires: -1 + }); } }); $(document).bind('close.djDebug', function() { |
