Skip to content
Snippets Groups Projects
Commit 139f4375 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #686670 by mfer, seutje, jide, casey: inconsistent code style in toolbar.js.

parent 212a5e08
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -71,7 +71,7 @@ function toolbar_menu() {
function toolbar_toggle_page() {
global $base_path;
// Toggle the value in the cookie.
setcookie('Drupal.admin.toolbar.collapsed', !_toolbar_is_collapsed(), NULL, $base_path);
setcookie('Drupal.toolbar.collapsed', !_toolbar_is_collapsed(), NULL, $base_path);
// Redirect the user from where he used the toggle element.
drupal_goto();
}
......@@ -177,7 +177,7 @@ function toolbar_view() {
$module_path . '/toolbar.js',
array('data' => 'misc/jquery.cookie.js', 'weight' => JS_LIBRARY + 2),
array(
'data' => array('tableHeaderOffset' => 'Drupal.admin.toolbar.height'),
'data' => array('tableHeaderOffset' => 'Drupal.toolbar.height'),
'type' => 'setting'
),
),
......
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