Merge "support for interwikis in experimental JS preview"
[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 var url = $( '#ca-edit a' ).attr( 'href' );
7 if ( url ) {
8 mw.util.$content.dblclick( function ( e ) {
9 e.preventDefault();
10 window.location = url;
11 } );
12 }
13 } );
14 }( mediaWiki, jQuery ) );