Merge "Log ime-change event"

This commit is contained in:
jenkins-bot
2013-08-20 05:44:08 +00:00
committed by Gerrit Code Review
5 changed files with 33 additions and 8 deletions

View File

@@ -78,6 +78,7 @@
mw.hook( 'mw.uls.language.revert' ).add( $.proxy( this.ulsLanguageRevert, this ) );
mw.hook( 'mw.uls.ime.enable' ).add( $.proxy( this.enableIME, this ) );
mw.hook( 'mw.uls.ime.disable' ).add( $.proxy( this.disableIME, this ) );
mw.hook( 'mw.uls.ime.change' ).add( $.proxy( this.changeIME, this ) );
mw.hook( 'mw.uls.login.click' ).add( $.proxy( this.loginClick, this ) );
mw.hook( 'mw.uls.ime.morelanguages' ).add( $.proxy( this.imeMoreLanguages, this ) );
mw.hook( 'mw.uls.interface.morelanguages' ).add( $.proxy( this.interfaceMoreLanguages, this ) );
@@ -121,6 +122,17 @@
this.log( { action: 'ime-enable' } );
},
/**
* Log IME change
* @param {string} inputMethod
*/
changeIME: function ( inputMethod ) {
this.log( {
action: 'ime-change',
inputMethod: inputMethod
} );
},
/**
* Log login link click in display settings.
* @param {jQuery.Deferred} deferred