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

           Summary: Collection: bookcreator.js fails when using Resource
                    Loader
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Collection
        AssignedTo: supp...@pediapress.com
        ReportedBy: thomasble...@gmx.de
                CC: tpars...@wikimedia.org


The Collection extension has a feature that when book creation is active, the
user can hover over any wiki link and a popup will appear offering to add the
linked page to the current book.

This feature is currently broken (using up-to-date phase3 and collection
checkouts from svn). I strongly suspect that the introduction of the
ResourceLoader broke this extension.

The errors in the Chromium console are:

Uncaught ReferenceError: jQuery is not defined
/w/extensions/Collection/js/jquery.json.js?8:17

Uncaught ReferenceError: $ is not defined
/w/extensions/Collection/js/jstorage.js?8:53

Uncaught ReferenceError: jQuery is not defined
/w/extensions/Collection/js/bookcreator.js?8:22

The Collection extension asks for JQuery by calling $wgOut->includeJQuery();
but can't find it afterwards (Collection.hooks.php:257). After changing this
code so the Collection extension uses its own JQuery library (which comes
bundled with the extension), the error above go away, but there is a new error: 

Uncaught ReferenceError: wgServer is not defined 
/w/extensions/Collection/js/bookcreator.js?8:24

IMHO this should be fixed before the Resource Loader is deployed on Wikimedia
sites.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to