Merge "Make disabling input methods work"
This commit is contained in:
@@ -78,19 +78,20 @@
|
||||
},
|
||||
|
||||
disable: function () {
|
||||
this.registry['enable'] = false;
|
||||
this.registry.isDirty = true;
|
||||
this.registry.enable = false;
|
||||
},
|
||||
|
||||
enable: function () {
|
||||
this.registry['enable'] = true;
|
||||
this.registry.isDirty = true;
|
||||
this.registry.enable = true;
|
||||
},
|
||||
|
||||
isEnabled: function () {
|
||||
|
||||
if ( this.registry['enable'] === undefined ) {
|
||||
if ( this.registry.enable === undefined ) {
|
||||
return mw.config.get( 'wgULSIMEEnabled' );
|
||||
} else {
|
||||
return this.registry['enable'];
|
||||
return this.registry.enable;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -411,6 +411,7 @@
|
||||
inputSettings.$template.find( 'button.uls-input-toggle-button' )
|
||||
.on( 'click', function () {
|
||||
inputSettings.enableApplyButton();
|
||||
|
||||
if ( $.ime.preferences.isEnabled() ) {
|
||||
inputSettings.disableInputTools();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user