Last modified: 2010-11-16 06:21:42 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 T27884, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25884 - SF loads SMW Javascripts even if loaded already
SF loads SMW Javascripts even if loaded already
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yaron Koren
http://semantic-mediawiki.org/w/index...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-11 15:27 UTC by Markus Krötzsch
Modified: 2010-11-16 06:21 UTC (History)
1 user (show)

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


Attachments

Description Markus Krötzsch 2010-11-11 15:27:38 UTC
SF loads Javascripts and styles from the SMW extension without caring about whether or not they are loaded by SMW. This can lead to multiple copies of a script being loaded, which can cause errors.

This happens on the above URL: the result table at the top features two copies of sort buttons. This is because of the form input further below which loads the SMW script. This is additionally strange since the script is not needed for SF at all. For best compatibility, SMW extensions should use the resource loading mechanism in ./includes/SMW_Outputs.php which is now also compatible with the new ResourceLoader. Even if ResourceLoader is not available yet, the mechanism will avoid duplicates.
Comment 1 Yaron Koren 2010-11-16 06:21:42 UTC
This is now fixed in SVN; thanks for the bug report.

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


Navigation
Links