Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | var href = $(this).find( '.editsection a' ).attr( 'href' ); |
16 | 16 | // Check if target is the anchor link itself. If so, don't suppress the context menu; this |
17 | 17 | // way the reader can still do things like copy URL, open in new tab etc. |
18 | | - $target = $( e.target ); |
| 18 | + var $target = $( e.target ); |
19 | 19 | if ( !$target.is( 'a' ) && !$target.parent().is( '.editsection' ) ){ |
20 | 20 | window.location = href; |
21 | 21 | e.preventDefault(); |