Restore normal behavior on middle-click for site link

Change-Id: I0f13cc97e69fffec64c5dd6c18f08bad44838d19
This commit is contained in:
Gergő Tisza 2014-03-01 00:00:31 +00:00
parent 4dad39c117
commit a8a31b1cfc

View file

@ -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;