Commit 10c33f3c authored by Dries's avatar Dries

- Patch #771036 by Gábor Hojtsy: overlay overwrites existing target attribute.

parent e4c4e082
......@@ -752,7 +752,9 @@ Drupal.overlay.clickHandler = function (event) {
else if ($target.get(0).hostname != window.location.hostname) {
// Add a target attribute to the clicked link. This is being picked up by
// the default action handler.
$target.attr('target', '_new');
if (!$target.attr('target')) {
$target.attr('target', '_new');
}
}
// Non-admin links should close the overlay and open in the main window.
// Only handle them if the overlay is open and the clicked link is inside
......
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