Commit f881a68a authored by catch's avatar catch

Issue #771036 by ojohansson, Gábor Hojtsy: Fixed Overlay overwrites existing target attribute.

parent af7bb9a5
......@@ -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');
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment