#645140 by casey: Remove inter-dependency between Shortcut and Toolbar.
parent
436ddca9fb
commit
1c20428a4b
|
@ -560,6 +560,7 @@ function shortcut_preprocess_page(&$variables) {
|
|||
}
|
||||
|
||||
$variables['title_suffix']['add_or_remove_shortcut'] = array(
|
||||
'#attached' => array('css' => array(drupal_get_path('module', 'shortcut') . '/shortcut.css')),
|
||||
'#prefix' => '<div class="add-or-remove-shortcuts ' . $link_mode . '-shortcut">',
|
||||
'#type' => 'link',
|
||||
'#title' => '<span class="icon"></span><span class="text">' . $link_text . '</span>',
|
||||
|
|
|
@ -53,7 +53,7 @@ Drupal.admin.toolbar.collapse = function() {
|
|||
.removeClass('toggle-active')
|
||||
.attr('title', toggle_text)
|
||||
.html(toggle_text);
|
||||
$('body').removeClass('toolbar-drawer');
|
||||
$('body').removeClass('toolbar-drawer').css('paddingTop', $('#toolbar').outerHeight());
|
||||
$.cookie(
|
||||
'Drupal.admin.toolbar.collapsed',
|
||||
1,
|
||||
|
@ -75,7 +75,7 @@ Drupal.admin.toolbar.expand = function() {
|
|||
.addClass('toggle-active')
|
||||
.attr('title', toggle_text)
|
||||
.html(toggle_text);
|
||||
$('body').addClass('toolbar-drawer');
|
||||
$('body').addClass('toolbar-drawer').css('paddingTop', $('#toolbar').outerHeight());
|
||||
$.cookie(
|
||||
'Drupal.admin.toolbar.collapsed',
|
||||
0,
|
||||
|
|
Loading…
Reference in New Issue