- Patch #771036 by Gábor Hojtsy: overlay overwrites existing target attribute.
parent
e4c4e08251
commit
10c33f3c3a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue