Make disabling input methods work

Mark isDirty correctly.

Change-Id: I1c5219c9f63dec15272dd97341295e346cdabcb3
This commit is contained in:
Amir E. Aharoni
2013-01-16 12:44:14 +02:00
committed by Gerrit Code Review
parent a98ff90d49
commit f47b54819b
2 changed files with 7 additions and 5 deletions

View File

@@ -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;
}
}