mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Merge "Narrow selector for links when adding _blank"
This commit is contained in:
commit
9d0c480529
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
ve.ui.MWDismissibleMessageWidget = function VeUiMWDismissibleMessageWidget( config ) {
|
ve.ui.MWDismissibleMessageWidget = function VeUiMWDismissibleMessageWidget( config ) {
|
||||||
var $label = config.message.parseDom();
|
var $label = config.message.parseDom();
|
||||||
$label.filter( 'a' ).attr( 'target', '_blank' );
|
$label.filter( 'a[href]' ).attr( 'target', '_blank' );
|
||||||
// eslint-disable-next-line no-jquery/variable-pattern
|
// eslint-disable-next-line no-jquery/variable-pattern
|
||||||
config.label = $label;
|
config.label = $label;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue