From: Roan Kattouw Date: Fri, 3 Dec 2010 12:46:29 +0000 (+0000) Subject: Followup r76973: keep $target variable local X-Git-Tag: 1.31.0-rc.0~33618 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=21708f1d4356cfcb4acecc0b99cca3804c171ba4;p=lhc%2Fweb%2Fwiklou.git Followup r76973: keep $target variable local --- diff --git a/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js b/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js index 11254174fd..5a7c777f42 100644 --- a/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js +++ b/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js @@ -14,7 +14,7 @@ $( function() { var href = $(this).find( '.editsection a' ).attr( 'href' ); // Check if target is the anchor link itself. If so, don't suppress the context menu; this // way the reader can still do things like copy URL, open in new tab etc. - $target = $( e.target ); + var $target = $( e.target ); if ( !$target.is( 'a' ) && !$target.parent().is( '.editsection' ) ){ window.location = href; e.preventDefault();