Commit 9b762dbf authored by catch's avatar catch

Issue #1216776 by illmasterc, dawehner, Niklas Fiekas: Fixed Two nested...

Issue #1216776 by illmasterc, dawehner, Niklas Fiekas: Fixed Two nested contextual links regions are active, when the outer region is hovered.
parent 7be4a6ab
......@@ -13,8 +13,7 @@
display: none;
}
.contextual-region:hover .contextual,
.contextual-region:hover .trigger,
.contextual-active .trigger,
.contextual-region:hover .contextual-links-trigger-active,
.contextual-active .contextual-links {
display: block;
}
......
......@@ -30,6 +30,10 @@ Drupal.behaviors.contextualLinks = {
);
// Hide the contextual links when user clicks a link or rolls out of the .contextual-region.
$region.bind('mouseleave click', Drupal.contextualLinks.mouseleave);
$region.hover(
function() { $trigger.addClass('contextual-links-trigger-active'); },
function() { $trigger.removeClass('contextual-links-trigger-active'); }
);
// Prepend the trigger.
$wrapper.prepend($trigger);
});
......
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