Pass the event object when calling the click handler

This will allow distinguishing Click and Ctrl/Command-Click.
See downstream bug https://phabricator.wikimedia.org/T189582
This commit is contained in:
Amire80
2018-03-13 14:34:11 +02:00
parent 9019b7742f
commit f11634e6d3

View File

@@ -408,8 +408,8 @@
var lcd = this;
if ( this.options.clickhandler ) {
this.$element.on( 'click', '.row li', function () {
lcd.options.clickhandler.call( this, $( this ).data( 'code' ) );
this.$element.on( 'click', '.row li', function ( event ) {
lcd.options.clickhandler.call( this, $( this ).data( 'code' ), event );
} );
}
}