Fixing mediawiki.action.watch.ajax
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 21 May 2011 18:33:48 +0000 (18:33 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 21 May 2011 18:33:48 +0000 (18:33 +0000)
commit9e3d20429361cd15a8da1007d3550e291ad519b1
treeaf35c44da771884b19ccbc9dbe8971bc84706a95
parent1b0e68cbadbcbb48252d76dd6e1af54ddee64195
Fixing mediawiki.action.watch.ajax
* Adding error capturing in case there is an error (either in the API or with the request itself). Right now if it fails it just keeps reading "Watching..." and no error is displayed.
This lack became visible when r88522 changed ApiWatch to require a token and POST.
* Added message 'watcherrortext'.
* Moved messages-array in Resources.php form legacy.ajax to action.watch.ajax (looks like this was forgotten in r78147)
* Switched it to make a POST request in preparation of making it work with the changed API backend as of r88522.
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc
resources/Resources.php
resources/mediawiki.action/mediawiki.action.watch.ajax.js