Merge "Further tweaks to pipe trick documentation (follow-up Iaf365e31)"
[lhc/web/wiklou.git] / resources / mediawiki.action / mediawiki.action.view.dblClickEdit.js
1 /**
2 * This module enables double-click-to-edit functionality
3 */
4 ( function ( mw, $ ) {
5 mw.util.$content.dblclick( function ( e ) {
6 e.preventDefault();
7 // Trigger native HTMLElement click instead of opening URL (bug 43052)
8 $( '#ca-edit a' ).get( 0 ).click();
9 } );
10 }( mediaWiki, jQuery ) );