Update jquery.uls from upstream

Updating to
31696b4074

Changes:
* Set maximum length of the search box to 40.
* Fix event object passing in language selection (Bug T189582).
* West Armenian localization.
* Credits update.

Change-Id: I1a5c70fea849a7e217b02cdf740ada0050a9f822
This commit is contained in:
Amire80
2018-03-26 16:09:04 +03:00
parent 3a70d258d5
commit 18b99ee358
3 changed files with 29 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ contribution to the product:
* Amir Aharoni
* Arun Ganesh
* Brandon Harris
* Ed Sanders
* Kartik Mistry
* Niklas Laxström
* Pau Giner
* Santhosh Thottingal

View File

@@ -0,0 +1,21 @@
{
"@metadata": {
"authors": [
"Armeniki"
]
},
"uls-region-WW": "Համաշխարհային",
"uls-region-SP": "Յատուկ",
"uls-region-AM": "Ամերիկա",
"uls-region-AF": "Ափրիկէ",
"uls-region-EU": "Եւրոպա",
"uls-region-AS": "Ասիա",
"uls-region-ME": "Միջին Արեւելք",
"uls-region-PA": "Խաղաղական",
"uls-region-all": "Ամէն լեզուները",
"uls-no-results-found": "Հետեւանք չը գտնուեձաւ",
"uls-common-languages": "Թելադրուած լեզուներ",
"uls-no-results-suggestion-title": "Կարելի է ձեզ հետաքրքրական ըլլայ․",
"uls-search-help": "Կրնաք որոնել լեզուի անունով, տարերու անունով, լեզուի ISO-ի օրինագիրով կամ կրնաք նայիլ շրջանով:",
"uls-search-placeholder": "Որոնել լեզու մը"
}

View File

@@ -34,6 +34,7 @@
<input type="text" class="uls-filterinput uls-filtersuggestion"\
disabled="true" autocomplete="off">\
<input type="text" class="uls-filterinput uls-languagefilter"\
maxlength="40"\
data-clear="uls-languagefilter-clear"\
data-suggestion="uls-filtersuggestion"\
placeholder="Search for a language" autocomplete="off">\
@@ -287,11 +288,12 @@
/**
* On select handler for search results
* @param {string} langCode
* @param {Object} event The jQuery click event
*/
select: function ( langCode ) {
select: function ( langCode, event ) {
this.hide();
if ( this.options.onSelect ) {
this.options.onSelect.call( this, langCode );
this.options.onSelect.call( this, langCode, event );
}
},
@@ -405,6 +407,8 @@
// Used by LCD
languageDecorator: undefined,
// Used by LCD
noResultsTemplate: undefined,
// Used by LCD
itemsPerColumn: undefined,
// Used by LCD
groupByRegion: undefined,