mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 00:03:56 +00:00
Merge "Don't interfere with middle click"
This commit is contained in:
commit
b8b7aa2e7c
|
@ -78,6 +78,11 @@
|
|||
urls[index].filePageLink = filePageLink;
|
||||
|
||||
$links.click( function ( e ) {
|
||||
// Do not interfere with non-left clicks or if modifier keys are pressed.
|
||||
if ( e.which !== 1 || e.altKey || e.ctrlKey || e.shiftKey || e.metaKey ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var $this = $( this );
|
||||
|
||||
if ( $this.is( 'a.image' ) ) {
|
||||
|
|
Loading…
Reference in a new issue