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

@@ -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,