Update jquery.ime from upstream

Fixes issue: Native Keyboard selection not reflected on the input fields
Version: 0.1.0+20130605
Bug: 49152

Change-Id: I1f16b3d8084bec8a4b7ab0b28bbe71777b44c077
This commit is contained in:
Santhosh Thottingal
2013-06-05 10:10:27 +05:30
committed by Gerrit Code Review
parent c9aa1f1130
commit 335b338b69

View File

@@ -1,4 +1,4 @@
/*! jquery.ime - v0.1.0+20130531 /*! jquery.ime - v0.1.0+20130605
* https://github.com/wikimedia/jquery.ime * https://github.com/wikimedia/jquery.ime
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */ * Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
( function ( $ ) { ( function ( $ ) {
@@ -772,11 +772,11 @@
if ( ime.getLanguage() === languageCode ) { if ( ime.getLanguage() === languageCode ) {
// Nothing to do. It is same as the current language, // Nothing to do. It is same as the current language,
// but check whether the input method changed. // but check whether the input method changed.
if ( ime.inputmethod && ime.inputmethod.id === imePref if ( ime.inputmethod && ime.inputmethod.id !== imePref ) {
|| imePref === 'system' this.selectIM( $.ime.preferences.getIM( languageCode ) );
) {
return false;
} }
return false;
} }
this.$menu.find( 'li.ime-lang' ).show(); this.$menu.find( 'li.ime-lang' ).show();