Update jquery.uls

https://github.com/wikimedia/jquery.uls/commit/967eec093edb153f4fdd0e5e4

Updates:

1) Always send event when triggering onSelect
The $.uls function in jquery.uls.core in createLanguageFilter passes the
onSelect function to the $.fn.languagefilter so the onSelect there should be
made compatible.

2) Removal of png images no longer needed for old browsers.

Bug: T261973
Change-Id: Ie316cc627178dde15d22607b2099d0da96dd6fda
This commit is contained in:
jdlrobson
2020-10-21 16:15:34 -07:00
committed by Amire80
parent e3569d32a7
commit 61e66598b5
5 changed files with 5 additions and 11 deletions

View File

@@ -107,11 +107,11 @@
if ( this.selectedLanguage ) {
// this.selectLanguage will be populated from a matching search
this.options.onSelect( this.selectedLanguage );
this.options.onSelect( this.selectedLanguage, e );
} else if ( this.options.languages[ query ] ) {
// Search is yet to happen (in timeout delay),
// but we have a matching language code.
this.options.onSelect( query );
this.options.onSelect( query, e );
}
break;