dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8127f4
)
Avoid some confusion with watching on edit by setting checkbox when ajax watch is...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 3 Aug 2008 19:32:00 +0000
(19:32 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 3 Aug 2008 19:32:00 +0000
(19:32 +0000)
skins/common/ajaxwatch.js
patch
|
blob
|
history
diff --git
a/skins/common/ajaxwatch.js
b/skins/common/ajaxwatch.js
index
d7c0625
..
c8d90b8
100644
(file)
--- a/
skins/common/ajaxwatch.js
+++ b/
skins/common/ajaxwatch.js
@@
-101,6
+101,11
@@
wgAjaxWatch.processResult = function(request) {
if(wgAjaxWatch.timeoutID) {
window.clearTimeout(wgAjaxWatch.timeoutID);
}
+ // Bug 12395 - avoid some watch link confusion on edit
+ var watchthis = document.getElementById("wpWatchthis");
+ if( watchthis && response.match(/^<[uw]#>/) ) {
+ watchthis.checked = response.match(/^<w#>/) ? "checked" : "";
+ }
return;
};