mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Whitespace cleanup
Change-Id: I49417b95a6c4c2538715e09b74ed3607f6741c3a
This commit is contained in:
parent
e8d8308d9a
commit
7c171ae0a5
|
@ -50,15 +50,16 @@ ve.ui.LinkTargetInputWidget.prototype.onEdit = function () {
|
|||
setTimeout( ve.bind( function () {
|
||||
// RTL/LTR check
|
||||
if ( $( 'body' ).hasClass( 'rtl' ) ) {
|
||||
var isExt = ve.init.platform.getExternalLinkUrlProtocolsRegExp().test( this.$input.val() );
|
||||
var isExt = ve.init.platform.getExternalLinkUrlProtocolsRegExp()
|
||||
.test( this.$input.val() );
|
||||
// If URL is external, flip to LTR. Otherwise, set back to RTL
|
||||
this.setRTL( !isExt );
|
||||
}
|
||||
this.setValue( this.$input.val() );
|
||||
}, this ) );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the value of the input.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue