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. Bug: T261973
This commit is contained in:
committed by
Niklas Laxström
parent
f8ed687422
commit
967eec093e
@@ -107,11 +107,11 @@
|
|||||||
|
|
||||||
if ( this.selectedLanguage ) {
|
if ( this.selectedLanguage ) {
|
||||||
// this.selectLanguage will be populated from a matching search
|
// 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 ] ) {
|
} else if ( this.options.languages[ query ] ) {
|
||||||
// Search is yet to happen (in timeout delay),
|
// Search is yet to happen (in timeout delay),
|
||||||
// but we have a matching language code.
|
// but we have a matching language code.
|
||||||
this.options.onSelect( query );
|
this.options.onSelect( query, e );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user