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