Whitespace cleanup

Change-Id: I49417b95a6c4c2538715e09b74ed3607f6741c3a
This commit is contained in:
Trevor Parscal 2013-06-18 12:37:24 -07:00 committed by Gerrit Code Review
parent e8d8308d9a
commit 7c171ae0a5

View file

@ -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.
*