diff options
author | David Rothstein <drothstein@gmail.com> | 2013-03-30 14:25:27 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-03-30 14:25:27 -0400 |
commit | c9d214811e6a6f433424d6ad342f55375a501abc (patch) | |
tree | 116b30a31b38ef6277123d217dbf7c30295e26af /modules/overlay | |
parent | 5177237f58d129f9348af723de886168f73f6a43 (diff) | |
download | brdo-c9d214811e6a6f433424d6ad342f55375a501abc.tar.gz brdo-c9d214811e6a6f433424d6ad342f55375a501abc.tar.bz2 |
Issue #771036 by ojohansson, Albert Volkman, Gábor Hojtsy: Fixed Overlay overwrites existing target attribute.
Diffstat (limited to 'modules/overlay')
-rw-r--r-- | modules/overlay/overlay-parent.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index 413475977..7452a5154 100644 --- a/modules/overlay/overlay-parent.js +++ b/modules/overlay/overlay-parent.js @@ -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'); + } } } } |