1 2 3 4 5 6 7 8 9 10 11 12
/*! * Enables double-click-to-edit functionality. */ ( function ( mw, $ ) { $( function () { mw.util.$content.dblclick( function ( e ) { e.preventDefault(); // Trigger native HTMLElement click instead of opening URL (bug 43052) $( '#ca-edit a' ).get( 0 ).click(); } ); } ); }( mediaWiki, jQuery ) );