summaryrefslogtreecommitdiff
path: root/modules/overlay
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-03-30 14:25:27 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-03-30 14:25:27 -0400
commitc9d214811e6a6f433424d6ad342f55375a501abc (patch)
tree116b30a31b38ef6277123d217dbf7c30295e26af /modules/overlay
parent5177237f58d129f9348af723de886168f73f6a43 (diff)
downloadbrdo-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.js7
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');
+ }
}
}
}