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:
@@ -408,8 +408,8 @@
|
|||||||
var lcd = this;
|
var lcd = this;
|
||||||
|
|
||||||
if ( this.options.clickhandler ) {
|
if ( this.options.clickhandler ) {
|
||||||
this.$element.on( 'click', '.row li', function () {
|
this.$element.on( 'click', '.row li', function ( event ) {
|
||||||
lcd.options.clickhandler.call( this, $( this ).data( 'code' ) );
|
lcd.options.clickhandler.call( this, $( this ).data( 'code' ), event );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user