Author: MediaWiki
Description:
diff -u result of comparing the latest MediaWiki version with my working copy of ajaxwatch.js
When the function wgAjaxWatch.setLinkID() is called, it sets the ID passed to it on the <a> instead of the containing <li>. What happens, for example on a page that was initially unwatched, is that <li id="ca-watch"><a> turns into <li id="ca-watch"><a id="ca-unwatch"> when the user clicks the tab to watch the page. I've attached a diff that applies the ID to the <li> instead, and loops through all the links in the wgAjaxWatch.watchLinks array to change their IDs (note: I've only tested on Monobook).
I hoped to fix the tooltip update problem by fixing the ID assignment glitch, but it hasn't worked. For that part of the bug, I have no patch.
Hopefully this trivial change will be committed by someone, then the tooltip problem can be worked on.
Version: 1.11.x
Severity: trivial
attachment ajaxwatch.js.diff ignored as obsolete