Commit c9d21481 authored by David_Rothstein's avatar David_Rothstein

Issue #771036 by ojohansson, Albert Volkman, Gábor Hojtsy: Fixed Overlay...

Issue #771036 by ojohansson, Albert Volkman, Gábor Hojtsy: Fixed Overlay overwrites existing target attribute.
parent 5177237f
......@@ -630,8 +630,11 @@ Drupal.overlay.eventhandlerOverrideLink = function (event) {
$target.attr('href', $.param.querystring(href, { destination: fragmentizedDestination }));
}
// Make the link open in the immediate parent of the frame.
$target.attr('target', '_parent');
// Make the link open in the immediate parent of the frame, unless the
// link already has a different target.
if (!$target.attr('target')) {
$target.attr('target', '_parent');
}
}
}
}
......
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