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