https://bugzilla.wikimedia.org/show_bug.cgi?id=51583
Web browser: ---
Bug ID: 51583
Summary: Add mw.hook event for wikipage: categories, langlinks,
diff etc.
Product: MediaWiki
Version: 1.21.0
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l