summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2012-02-16 04:27:56 (GMT)
committer catch2012-02-16 04:27:56 (GMT)
commitf881a68a01ab681ed3d6f8a12367375c7f04f142 (patch)
tree9cab412e1b1829b4f2b700cb0ed9a8536b8e8e2d
parentaf7bb9a51424e5e0f5607cd7cf16d0a321276326 (diff)
Issue #771036 by ojohansson, Gábor Hojtsy: Fixed Overlay overwrites existing target attribute.
-rw-r--r--core/modules/overlay/overlay-parent.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/modules/overlay/overlay-parent.js b/core/modules/overlay/overlay-parent.js
index 57368bf..b406a97 100644
--- a/core/modules/overlay/overlay-parent.js
+++ b/core/modules/overlay/overlay-parent.js
@@ -618,8 +618,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');
+ }
}
}
}