Last modified: 2010-11-08 19:38:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27797, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25797 - UploadWizard assumes presence of jquery.suggestions plugin
UploadWizard assumes presence of jquery.suggestions plugin
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Neil Kandalgaonkar
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-05 13:23 UTC by Roan Kattouw
Modified: 2010-11-08 19:38 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2010-11-05 13:23:13 UTC
...but there are cases when this plugin isn't present, e.g. when the Vector extension is not enabled, or when a skin other than Vector is used (although in the latter case you have worse things to worry about, see bug 25796). In those cases, a JS error is thrown and whatever the suggestions plugin is used for doesn't work. Haven't noticed any other bad effects.

If you want/need to, you can detect the presence of the suggestions plugin with if ( 'suggestions' in $j.fn )
Comment 1 Guillaume Paumier 2010-11-05 16:34:34 UTC
Merging bugzilla components "Multimedia Usability" and "Upload Wizard"
Comment 2 Neil Kandalgaonkar 2010-11-08 19:38:49 UTC
(In reply to comment #0)
> ...but there are cases when this plugin isn't present, e.g. when the Vector
> extension is not enabled, or when a skin other than Vector is used (although in
> the latter case you have worse things to worry about, see bug 25796). In those
> cases, a JS error is thrown and whatever the suggestions plugin is used for
> doesn't work. Haven't noticed any other bad effects.
> 
> If you want/need to, you can detect the presence of the suggestions plugin with
> if ( 'suggestions' in $j.fn )

We don't have any concept of conditional loading in the primitive resource loader that I hacked into UploadWizard. Also, it seems that we're being deployed ahead of ResourceLoader, and some people have asked about using this with non-WMF wikis.

So, I'm just going to include my own, and if it happens to overwrite the one in Vector, so be it.

That said we're probably going to have this issue with libs we've hacked up more at the WMF (like tipsy.js) so I'll have to examine what JS really is in WMF deployment branch now, and how to avoid having multiple "lines" of development for these libraries.

Fixed in r76327.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links