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

       Web browser: ---
             Bug #: 34510
           Summary: monobook toolbar or vector with old toolbar not setup
                    randomly
           Product: MediaWiki
           Version: 1.19
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Resource Loader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


with the old toolbar button are inserted through a fragment of javascript
looking like

<script>if(window.mw){
mw.loader.using("mediawiki.action.edit", function() {mw.toolbar.addButton(...
...
$(function() { mw.toolbar.init(); } );
});
}</script>

init fail in some case because the selector in
/resources/mediawiki.action/mediawiki.action.edit.js : $toolbar : $( '#toolbar'
), doesn't return the toolbar div element, when failure occur
document.readyState == false, ditto for $.isReady, look like mw.toolbar can be
init before the DOM is fully built.

This is not easy to reproduce, for some user it fails always, for other never
and so on.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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