Move action.watch to a more suitable place and expose updateWatchLink
authorRob Moen <rmoen@wikimedia.org>
Tue, 19 Jun 2012 23:00:57 +0000 (16:00 -0700)
committerRob Moen <rmoen@wikimedia.org>
Wed, 20 Jun 2012 19:56:50 +0000 (12:56 -0700)
commit2e089a4e58b602fc97683e71c352e642411d68d6
tree7e62ead2bb9fccd98e836ea6610afebdc775cbc1
parent7d66961ad3faef7caa0da5dd5df041a6835f53f4
Move action.watch to a more suitable place and expose updateWatchLink
method in mw.page.watch.  Update method to toggle watch, unwatch
list item id attribute.
Patchset 2- Expose method with less code duplication, restore
comments, cleanup whitespace.
Patchset 3-5 Whitespace cleanup
Patchset 6 - Trigger a watch event on the updated li
Patchset 7 - Only trigger watch event if not updating
state, announce opposite of icon action, to properly
indicate action taken.
Patchset 8 - Cleanup spacing and comments issues,
change event namespace.
Patchset 9 - actually add the change
Change-Id: I591f9f847db391c5d1477dc2ed41de54ec266261
includes/OutputPage.php
resources/Resources.php
resources/mediawiki.action/mediawiki.action.watch.ajax.js [deleted file]
resources/mediawiki.page/mediawiki.page.watch.ajax.js [new file with mode: 0644]