From a6cca24d2ae17de1eb1829a8eefa249f756f8975 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 17 Nov 2009 18:51:19 +0000 Subject: [PATCH] #555712 by TheRec, catch, bleen18: Store Toolbar collapsed/expanded state in a cookie so it's remembered between sessions. --- modules/toolbar/toolbar.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/toolbar/toolbar.js b/modules/toolbar/toolbar.js index aa2e3477076..9c07f78bd71 100644 --- a/modules/toolbar/toolbar.js +++ b/modules/toolbar/toolbar.js @@ -54,7 +54,11 @@ Drupal.admin.toolbar.collapse = function() { $.cookie( 'Drupal.admin.toolbar.collapsed', 1, - {path: Drupal.settings.basePath} + { + path: Drupal.settings.basePath, + // The cookie should "never" expire. + expires: 36500 + } ); } @@ -72,7 +76,11 @@ Drupal.admin.toolbar.expand = function() { $.cookie( 'Drupal.admin.toolbar.collapsed', 0, - {path: Drupal.settings.basePath} + { + path: Drupal.settings.basePath, + // The cookie should "never" expire. + expires: 36500 + } ); }