Log ime-change event

Change-Id: I6dfc769f0de536e2ef35b165fe7a35f196bb181b
This commit is contained in:
Amir E. Aharoni
2013-08-20 07:40:42 +03:00
parent e5891b83b5
commit 3b6d5cc83e
5 changed files with 33 additions and 8 deletions

View File

@@ -530,6 +530,10 @@
apply: function () {
var inputSettings = this;
mw.hook( 'mw.uls.ime.change' ).fire(
$.ime.preferences.getIM( $.ime.preferences.getLanguage() )
);
// Save the preferences
$.ime.preferences.save( function ( result ) {
// closure for not losing the scope