Page MenuHomePhabricator

Make inline actions like ajaxWatch easier to clone for extensions
Closed, DeclinedPublic

Description

Inline (un)watching is great but hard to clone for extensions.

I have an extension that ca (un)favroite pages just like the watchlist feature, but the action links take you to separate pages. It seems impossible to clone the feature.

What is needed to clone it? ajaxwatch.js and wfAjaxWatch() in AjaxFunctions.php?


Version: unspecified
Severity: enhancement

Details

Reference
bz35639

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:16 AM
bzimport set Reference to bz35639.
bzimport added a subscriber: Unknown Object (MLST).

wfAjaxWatch and ajaxwatch.js have been deprecated and removed.

AjaxFunctions.php is deprecated, but not removed yet.

Uour extension offers has been or should be refactored to use the API instead.

Nowadays MediaWiki ships with jQuery and various mediawiki-tailored modules such as mediawiki.api.js. These make it really easy to do what ajaxwatch used to do with only a few lines of code.

Providing a way to "clone" this core feature doesn't make sense anymore since it has become trivial to implement from scratch as all the features it uses underneath have been abstracted and become available independently. In a way it is already a clone of itself.