repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[JobQueue] Added missing delete query.
[mediawiki.git]
/
resources
/
mediawiki.action
/
mediawiki.action.view.dblClickEdit.js
blob
7a9ceee577adcf900bb0ab59d0d023e9d57d0877
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
) );