r93284 : Update rightClickEdit.js
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Wed, 27 Jul 2011 16:56:17 +0000 (16:56 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Wed, 27 Jul 2011 16:56:17 +0000 (16:56 +0000)
resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js

index caf9a9f..350563f 100644 (file)
@@ -3,12 +3,12 @@
  */
 jQuery( function( $ ) {
        // Select all h1-h6 elements that contain editsection links
-       $( 'h1:has(.editsection a), ' +
-               'h2:has(.editsection a), ' +
-               'h3:has(.editsection a), ' +
-               'h4:has(.editsection a), ' +
-               'h5:has(.editsection a), ' +
-               'h6:has(.editsection a)'
+       $( '.mw-h1:has(.editsection a), ' +
+               '.mw-h2:has(.editsection a), ' +
+               '.mw-h3:has(.editsection a), ' +
+               '.mw-h4:has(.editsection a), ' +
+               '.mw-h5:has(.editsection a), ' +
+               '.mw-h6:has(.editsection a)'
        ).live( 'contextmenu', function( e ) {
                // Get href of the [edit] link
                var href = $(this).find( '.editsection a' ).attr( 'href' );