Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js |
— | — | @@ -3,12 +3,12 @@ |
4 | 4 | */ |
5 | 5 | jQuery( function( $ ) { |
6 | 6 | // Select all h1-h6 elements that contain editsection links |
7 | | - $( 'h1:has(.editsection a), ' + |
8 | | - 'h2:has(.editsection a), ' + |
9 | | - 'h3:has(.editsection a), ' + |
10 | | - 'h4:has(.editsection a), ' + |
11 | | - 'h5:has(.editsection a), ' + |
12 | | - 'h6:has(.editsection a)' |
| 7 | + $( '.mw-h1:has(.editsection a), ' + |
| 8 | + '.mw-h2:has(.editsection a), ' + |
| 9 | + '.mw-h3:has(.editsection a), ' + |
| 10 | + '.mw-h4:has(.editsection a), ' + |
| 11 | + '.mw-h5:has(.editsection a), ' + |
| 12 | + '.mw-h6:has(.editsection a)' |
13 | 13 | ).live( 'contextmenu', function( e ) { |
14 | 14 | // Get href of the [edit] link |
15 | 15 | var href = $(this).find( '.editsection a' ).attr( 'href' ); |