Skip to content
Snippets Groups Projects
Commit a6cca24d authored by Angie Byron's avatar Angie Byron
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment