Fire the ime-enable/disable hook upon saving the preferences
Change-Id: I98e502cd8dc1990b10b1f824614c84d3bf5b993f
This commit is contained in:
committed by
Niklas Laxström
parent
6cf1486399
commit
4e04182ecd
@@ -81,13 +81,11 @@
|
||||
disable: function () {
|
||||
this.registry.isDirty = true;
|
||||
this.registry.enable = false;
|
||||
mw.hook( 'mw.uls.ime.disable' ).fire();
|
||||
},
|
||||
|
||||
enable: function () {
|
||||
this.registry.isDirty = true;
|
||||
this.registry.enable = true;
|
||||
mw.hook( 'mw.uls.ime.enable' ).fire();
|
||||
},
|
||||
|
||||
isEnabled: function () {
|
||||
@@ -152,6 +150,7 @@
|
||||
$.ime.preferences.save( function () {
|
||||
mw.ime.disable();
|
||||
imeNotification();
|
||||
mw.hook( 'mw.uls.ime.disable' ).fire( 'menu' );
|
||||
} );
|
||||
e.stopPropagation();
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user