Merge "Allow MWExtensionInspector to be set to forced LTR status"

This commit is contained in:
jenkins-bot 2014-04-17 03:21:17 +00:00 committed by Gerrit Code Review
commit 564e77bc43

View file

@ -41,6 +41,15 @@ ve.ui.MWExtensionInspector.static.removable = false;
*/
ve.ui.MWExtensionInspector.static.allowedEmpty = false;
/**
* Extension is forced to always be LTR; defaults to false
*
* @static
* @property {boolean}
* @inheritable
*/
ve.ui.MWExtensionInspector.static.forcedLtr = false;
/* Methods */
/**
@ -88,7 +97,7 @@ ve.ui.MWExtensionInspector.prototype.setup = function ( data ) {
this.input.$input.attr( 'placeholder', this.getInputPlaceholder() );
this.input.setRTL( data.dir === 'rtl' );
this.input.setRTL( !this.static.forcedLtr && ( data.dir === 'rtl' ) );
};
/**