summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/toolbar/toolbar.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/toolbar/toolbar.js b/modules/toolbar/toolbar.js
index aa2e34770..9c07f78bd 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
+ }
);
}