mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 11:17:54 +00:00
Don't interfere with middle click
Bug: 56905 Change-Id: Ib612a77e825324f5b262bc757ae3dc4346d8b858
This commit is contained in:
parent
7a0efb7bab
commit
f6e4ba2b20
|
@ -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