Don't interfere with middle click

Bug: 56905
Change-Id: Ib612a77e825324f5b262bc757ae3dc4346d8b858
This commit is contained in:
Ebrahim Byagowi 2013-11-12 20:08:57 +00:00
parent 7a0efb7bab
commit f6e4ba2b20

View file

@ -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' ) ) {