Commit c3def18f authored by webchick's avatar webchick
Browse files

#650832 by Gábor Hojtsy: Fixed shortcut bar collapse / overlay interaction.

parent 527a0549
......@@ -19,8 +19,8 @@ Drupal.behaviors.overlayParent = {
// Simulate the native click event for all links that appear outside the
// overlay. jQuery UI Dialog prevents all clicks outside a modal dialog.
$('.overlay-displace-top a', context)
.add('.overlay-displace-bottom a', context)
$('.overlay-displace-top a:not(.overlay-displace-no-click)', context)
.add('.overlay-displace-bottom a:not(.overlay-displace-no-click)', context)
.click(function () {
window.location.href = this.href;
});
......
......@@ -282,6 +282,7 @@ function overlay_preprocess_page(&$variables) {
*/
function overlay_preprocess_toolbar(&$variables) {
$variables['classes_array'][] = "overlay-displace-top";
$variables['toolbar']['toolbar_toggle']['#attributes']['class'][] = 'overlay-displace-no-click';
}
/**
......
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