mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-28 01:50:09 +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 ),
|
||||
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
|
||||
mw.mmv.logger.log( 'site-link-click' );
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue