#555712 by TheRec, catch, bleen18: Store Toolbar collapsed/expanded state in a cookie so it's remembered between sessions.

merge-requests/26/head
Angie Byron 2009-11-17 18:51:19 +00:00
parent 8e9030380b
commit a6cca24d2a
1 changed files with 10 additions and 2 deletions

View File

@ -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
}
);
}