(bug 7851) Implement mediawiki.page.patrol.ajax
authorMarius Hoch <hoo@online.de>
Wed, 3 Oct 2012 01:33:55 +0000 (03:33 +0200)
committerMarius Hoch <hoo@online.de>
Tue, 13 Nov 2012 22:09:38 +0000 (23:09 +0100)
commitd1debff4763b732402f141fa87bc8e410c080877
treec4c3d3e319a299700fd5903f9bbc199b26e7294b
parent4a32961644b058e1d47c0d8a7a6e6b21e445a8e9
(bug 7851) Implement mediawiki.page.patrol.ajax

Implement AJAX patrolling with the new mediawiki.page.patrol.ajax
module, which makes use of the API via mediawiki.api.

During the patrol process a spinner (created by jquery.spinner)
shows up and after it a suitable message gets shown via
mediawiki.notify.

Depending on whether we had success or not the link then turns up
again or the brackets completely disappear just like on a normal page view.

On top of adding the module, I've changed the following:
- Added the patrol token to the ResourceLoaderUserTokensModule.
- Registered messages 'markedaspatrollednotify' and
  'markedaspatrollederrornotify'.

Change-Id: I472357566dda0ab572c20e2e4b87508b0f2f4c73
RELEASE-NOTES-1.21
includes/Article.php
includes/diff/DifferenceEngine.php
includes/resourceloader/ResourceLoaderUserTokensModule.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc
resources/Resources.php
resources/mediawiki.page/mediawiki.page.patrol.ajax.js [new file with mode: 0644]