diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-17 18:51:19 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-17 18:51:19 +0000 |
commit | a6cca24d2ae17de1eb1829a8eefa249f756f8975 (patch) | |
tree | e4b3d6a9a34ae440e948057e6d4f3e7e4f929e55 /modules | |
parent | 8e9030380b6f3ce2cf857469bd6724f13cad5bc4 (diff) | |
download | brdo-a6cca24d2ae17de1eb1829a8eefa249f756f8975.tar.gz brdo-a6cca24d2ae17de1eb1829a8eefa249f756f8975.tar.bz2 |
#555712 by TheRec, catch, bleen18: Store Toolbar collapsed/expanded state in a cookie so it's remembered between sessions.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/toolbar/toolbar.js | 12 |
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 + } ); } |