https://bugzilla.wikimedia.org/show_bug.cgi?id=30713

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |23580
            Summary|Introduce custom events for |Implement JavaScript hook
                   |MediaWiki's front-end flow  |for "article ready"

--- Comment #8 from Krinkle <[email protected]> 2012-08-16 12:31:11 UTC ---
(In reply to comment #7)
> This has some overlap with bug 23580.
> 
> This bug should probably focus on the hook/event that happens on
> domready/preview and whether it should be a hook or a dom event. While the
> other bug focuses on the introduction of a mw.hooks for anything we need it
> for.

I agree. I've renamed this bug to implement a hook for "article ready" (which
will be executed with <div id="bodyContent"></div> once by default, and can be
re-triggered by other scripts when and as appropiate.

Made bug 23580 a dependency. As we'll need
> mw.hooks.run( 'article.load', .. );

.. in the page output in order for
> mw.hooks.add( 'article.load', function ( $content () {
>     ...;
> } );
 to work.

-- 
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

Reply via email to