Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f881a68a
Commit
f881a68a
authored
Feb 16, 2012
by
Nathaniel Catchpole
Browse files
Issue
#771036
by ojohansson, Gábor Hojtsy: Fixed Overlay overwrites existing target attribute.
parent
af7bb9a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/overlay/overlay-parent.js
View file @
f881a68a
...
...
@@ -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
'
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment