Merge "Don't interfere with middle click"

This commit is contained in:
jenkins-bot 2013-11-13 20:52:40 +00:00 committed by Gerrit Code Review
commit b8b7aa2e7c

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