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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user