2 * Enables double-click-to-edit functionality.
6 mw.util.$content.dblclick( function ( e ) {
8 // Recheck preference so extensions can do a hack to disable this code.
9 if ( parseInt( mw.user.options.get( 'editondblclick' ), 10 ) ) {
11 // Trigger native HTMLElement click instead of opening URL (T45052)
12 $a = $( '#ca-edit a' );
13 // Not every page has an edit link (T59713)
20 }( mediaWiki, jQuery ) );