mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-12 09:27:36 +00:00
Restore normal behavior on middle-click for site link
Change-Id: I0f13cc97e69fffec64c5dd6c18f08bad44838d19
This commit is contained in:
parent
4dad39c117
commit
a8a31b1cfc
|
@ -246,7 +246,7 @@
|
||||||
var $link = $( this ),
|
var $link = $( this ),
|
||||||
redirect;
|
redirect;
|
||||||
|
|
||||||
if ( e.altKey || e.shiftKey || e.ctrlKey || e.metaKey ) {
|
if ( e.altKey || e.shiftKey || e.ctrlKey || e.metaKey || e.button === 1 ) {
|
||||||
// They are likely opening the link in a new window or tab
|
// They are likely opening the link in a new window or tab
|
||||||
mw.mmv.logger.log( 'site-link-click' );
|
mw.mmv.logger.log( 'site-link-click' );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue