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

merge-requests/26/head
Dries Buytaert 2010-04-15 12:20:21 +00:00
parent e4c4e08251
commit 10c33f3c3a
1 changed files with 3 additions and 1 deletions

View File

@ -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