Merge "tests: group structures tests in their own directory"
[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 $( function () {
6 mw.util.$content.dblclick( function ( e ) {
7 e.preventDefault();
8 // Trigger native HTMLElement click instead of opening URL (bug 43052)
9 $( '#ca-edit a' ).get( 0 ).click();
10 } );
11 } );
12 }( mediaWiki, jQuery ) );