Last modified: 2014-11-15 20:31:39 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 T53583, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51583 - Add mw.hook event for wikipage: categories, langlinks, diff etc.
Add mw.hook event for wikipage: categories, langlinks, diff etc.
Status: ASSIGNED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.21.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks: 53918
  Show dependency treegraph
 
Reported: 2013-07-17 23:39 UTC by Krinkle
Modified: 2014-11-15 20:31 UTC (History)
7 users (show)

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


Attachments

Description Krinkle 2013-07-17 23:39:18 UTC
bug 30713 will add "wikipage.content" passing it #mw-content-text, and will fire it on initial load and from live preview (and other code like VisualEditor and other extensions/gadgets should also fire it when they replace/update the content).

A few others we should add for things outside the content:

* wikipage.categories
  arguments: .catlinks

  Fired initially and from live preview.
  e.g. for things like HotCat to listen to

* wikipage.langlinks
  arguments: #p-lang

  Fire initially if #p-lang exists/non-empty, and from live preview.

* wikipage.diff
  arguments: #wikiDiff

  Fire initially if page has a diff on it, and from live preview if user
  did "show changes".

  e.g. for patrolling tools to hook into the diff and the [mark as patrolled] link.

* wikipage.editform
  arguments: (common parent of .mw-summary-preview, .templatesUsed, .hiddencats)

  e.g. for vector.footerCleanup and other things that hook into this.
Comment 1 Krinkle 2013-07-18 01:45:32 UTC
These are easy to add. Holding off until usage of "wikipage.content" is slightly more widespread and we have more use cases for these (e.g. will HotCat be able to use this? etc.)

If you need one of these hooks, please let it know here including a brief description of how/where you'd like to use it. That'll help to shape the details of exactly where these hooks would go.
Comment 2 Andre Klapper 2013-09-26 15:08:51 UTC
As the Target Milestone on this ticket has been set to 1.22.0:

According to http://lists.wikimedia.org/pipermail/wikitech-l/2013-September/072030.html "MediaWiki 1.22 is slated for release on November 30th, at the very latest."

If this is still intended to get fixed for 1.22.0, a patch is needed soon.
Comment 3 Andre Klapper 2013-12-07 02:37:49 UTC
[Bumping TM as MediaWiki 1.22.0 tarball was released today.]
Comment 4 Mark A. Hershberger 2014-06-21 19:58:00 UTC
Removing target milestone that was in the past.

If you want this in a specific release, have a good reason AND you are willing to find resources to fix this bug, feel free to change it to something appropriate.

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


Navigation
Links