https://bugzilla.wikimedia.org/show_bug.cgi?id=23580
Summary: Provide onLivePreviewDone javascript hook for NAVPOP
and other scripts
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=7381)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=7381)
Patch.
Currently, a previewed edit does not display [[WP:NAVPOP]] popups since NAVPOP
can't register its mouse event handlers on the dynamically created links. There
is a workaround that checks in intervals for the spinner to disappear, and
makes navpop reparse the preview. That's rather ugly, and I presume other
scripts wanting to react on the preview have the same problem.
I propose adding a simple hook which is called once display of live preview is
finished (pretty much exactly like [[User:Js/ajaxPreview]]). Proposed patch
attached.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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