Last modified: 2012-12-16 17:53:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37639, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35639 - Make inline actions like ajaxWatch easier to clone for extensions
Make inline actions like ajaxWatch easier to clone for extensions
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-01 17:04 UTC by Subfader
Modified: 2012-12-16 17:53 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Subfader 2012-04-01 17:04:09 UTC
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?
Comment 1 Krinkle 2012-12-16 17:16:06 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links