repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
thumb_handler.php doesn't seem to extract path_info correctly
[mediawiki.git]
/
resources
/
mediawiki.action
/
mediawiki.action.view.dblClickEdit.js
blob
727a525165a6082f826fff20d6cde66c8ecce20e
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 ) );