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


Roan Kattouw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Roan Kattouw <[email protected]>  2009-08-09 09:56:42 
UTC ---
(In reply to comment #2)
> I think addOnloadHook is just something like a hack. It's available only
> because toolbar's initialization hooks $(document).ready.
> 
> What's the problem if the order is changed?
> 

The core code doesn't facilitate adding extension JS before user/site JS. I've
fixed the issue in a different way in r54646: user/site JS can now customize
the toolbar with:

$(document).bind('toolbarConfig', function() {
        // Do stuff with editToolbarConfiguration
});

(wrapped in a check for $ being defined, of course).


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