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

Nemo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Nemo <[email protected]> ---
(In reply to comment #9)
> billinghurst, this has nothing to do with switching to the new toolbar;
> mw.toolbar.addButton works with and is intended for the old one, and the
> change
> is just a simple find and replace:
> 
>   Find:         mwCustomEditButtons[mwCustomEditButtons.length] = { ... }
>   Replace with: mw.toolbar.addButton({ ... })
> 
> Just be careful about braces and parentheses.
> 
> Here's an example diff:
> https://nl.wikipedia.org/w/index.php?title=Gebruiker:Romaine/vector.js&diff=37497149&oldid=37497060

This solution didn't work for long, it just broke all JavaScript for me on Meta
(most prominently, [[m:WM:LS]]) with:

Timestamp: 09/06/2013 20:03:03
Error: TypeError: mw.toolbar is undefined
Source File:
https://bits.wikimedia.org/meta.wikimedia.org/load.php?debug=false&lang=it&modules=user&only=scripts&skin=monobook&user=Nemo+bis&version=20130601T024617Z&*
Line: 1

[MediaWiki     1.22wmf5 (bad4d50)]

-- 
You are receiving this mail because:
You are the assignee for the bug.
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