Commit a6cca24d authored by webchick's avatar webchick
Browse files

#555712 by TheRec, catch, bleen18: Store Toolbar collapsed/expanded state in a...

#555712 by TheRec, catch, bleen18: Store Toolbar collapsed/expanded state in a cookie so it's remembered between sessions.
parent 8e903038
......@@ -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
}
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment