Update jquery.ime from upstream
Change-Id: Iac3c14f82c982396c4bcecfb3c5cc97df82c41cb Version: 0.1.0+20130531
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*! jquery.ime - v0.1.0+20130522
|
||||
/*! jquery.ime - v0.1.0+20130531
|
||||
* https://github.com/wikimedia/jquery.ime
|
||||
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
|
||||
( function ( $ ) {
|
||||
@@ -772,9 +772,8 @@
|
||||
if ( ime.getLanguage() === languageCode ) {
|
||||
// Nothing to do. It is same as the current language,
|
||||
// but check whether the input method changed.
|
||||
if ( ime.inputmethod &&
|
||||
ime.inputmethod.id === imePref ||
|
||||
imePref === 'system'
|
||||
if ( ime.inputmethod && ime.inputmethod.id === imePref
|
||||
|| imePref === 'system'
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
@@ -823,6 +822,10 @@
|
||||
var imeselector = this,
|
||||
ime;
|
||||
|
||||
if ( !inputmethodId ) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$menu.find( '.checked' ).removeClass( 'checked' );
|
||||
this.$menu.find( 'li.ime-disable' ).removeClass( 'checked' );
|
||||
this.$menu.find( 'li[data-ime-inputmethod=' + inputmethodId + ']' )
|
||||
@@ -835,10 +838,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !inputmethodId ) {
|
||||
return;
|
||||
}
|
||||
|
||||
ime.load( inputmethodId, function () {
|
||||
imeselector.inputmethod = $.ime.inputmethods[inputmethodId];
|
||||
imeselector.hide();
|
||||
@@ -1136,7 +1135,9 @@
|
||||
if ( !this.registry.imes ) {
|
||||
this.registry.imes = {};
|
||||
}
|
||||
return this.registry.imes[language] || $.ime.languages[language].inputmethods[0];
|
||||
return this.registry.imes[language] ||
|
||||
( $.ime.languages[language] &&
|
||||
$.ime.languages[language].inputmethods[0] );
|
||||
},
|
||||
|
||||
save: function () {
|
||||
@@ -1435,9 +1436,9 @@
|
||||
name: 'KGP/Nudi/KP Rao',
|
||||
source: 'rules/kn/kn-kgp.js'
|
||||
},
|
||||
'kok-inscript2': {
|
||||
'gom-inscript2': {
|
||||
name: 'इनस्क्रिप्ट २',
|
||||
source: 'rules/kok/kok-inscript2.js'
|
||||
source: 'rules/gom/gom-inscript2.js'
|
||||
},
|
||||
'ks-inscript': {
|
||||
name: 'इनस्क्रिप्ट',
|
||||
@@ -1639,6 +1640,10 @@
|
||||
name: 'International Phonetic Alphabet - SIL',
|
||||
source: 'rules/fonipa/ipa-sil.js'
|
||||
},
|
||||
'udm-alt': {
|
||||
name: 'Удмурт ALT',
|
||||
source: 'rules/udm/udm-alt.js'
|
||||
},
|
||||
'uk-kbd': {
|
||||
name: 'кбд',
|
||||
source: 'rules/uk/uk-kbd.js'
|
||||
@@ -1740,7 +1745,7 @@
|
||||
},
|
||||
'gom': {
|
||||
autonym: 'कोंकणी',
|
||||
inputmethods: [ 'hi-transliteration', 'hi-inscript' ]
|
||||
inputmethods: [ 'hi-transliteration', 'hi-inscript', 'gom-inscript2' ]
|
||||
},
|
||||
'gu': {
|
||||
autonym: 'ગુજરાતી',
|
||||
@@ -1802,10 +1807,6 @@
|
||||
autonym: 'ⵜⴰⵇⴱⴰⵢⵍⵉⵜ',
|
||||
inputmethods: [ 'ber-tfng' ]
|
||||
},
|
||||
'kok': {
|
||||
autonym: 'कोंकणी',
|
||||
inputmethods: [ 'kok-inscript2' ]
|
||||
},
|
||||
'lbe': {
|
||||
autonym: 'лакку',
|
||||
inputmethods: [ 'cyrl-palochka' ]
|
||||
@@ -1946,6 +1947,10 @@
|
||||
autonym: 'ⵜⴰⵎⴰⵣⵉⵖⵜ',
|
||||
inputmethods: [ 'ber-tfng' ]
|
||||
},
|
||||
'udm': {
|
||||
autonym: 'удмурт',
|
||||
inputmethods: [ 'udm-alt' ]
|
||||
},
|
||||
'uk': {
|
||||
autonym: 'Українська',
|
||||
inputmethods: [ 'uk-kbd' ]
|
||||
|
||||
Reference in New Issue
Block a user