Pass the event to ULS core select()

Follow up to #305.
This commit is contained in:
Amire80
2018-03-21 21:58:23 +02:00
committed by Niklas Laxström
parent b9d400d167
commit 119f3565f1

View File

@@ -288,10 +288,10 @@
* On select handler for search results * On select handler for search results
* @param {string} langCode * @param {string} langCode
*/ */
select: function ( langCode ) { select: function ( langCode, event ) {
this.hide(); this.hide();
if ( this.options.onSelect ) { if ( this.options.onSelect ) {
this.options.onSelect.call( this, langCode ); this.options.onSelect.call( this, langCode, event );
} }
}, },