Closed (fixed)
Project:
jQueries
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
22 Mar 2012 at 17:19 UTC
Updated:
17 May 2012 at 13:18 UTC
Hi,
I've tried using this module with multilingual site.
When I add a new jQuery version, I get an error "Drupal is not defined".
The problem is that jQuery module outputs language javascript files, which are generated by the locale module, before drupal.js.
<script type="text/javascript" src="http://my-site.com/files/languages/fr_viuaRuB3A0d2AhCcSjPSc9CdGHC-fMI6a5FStYyqcI8.js?m1aon2"></script>
...
<script type="text/javascript" src="http://my-site.com/misc/jquery.js?v=1.4.4"></script>
<script type="text/javascript" src="http://my-site.com/misc/drupal.js?m1aon2"></script>
This bug generates a javascript error and prevent scripts to work properly (mostly in IE).
Here's is a patch that solves the problem, but I don't know if there are counterparts with this workaround.
| Comment | File | Size | Author |
|---|---|---|---|
| jqueries_locale_js.patch | 829 bytes | ludo.r |
Comments
Comment #1
ludo.rComment #2
BoogieBug commentedThanks. I'll patch your code into the beta release.
Comment #3
ludo.rThanks, but as I already said, I don't know if there are side effects by doing this.
However I did not have any issue until now with this patch (my website isn't yet in production, but still in development).
Comment #4
BoogieBug commentedThe patch was successfully applied to the beta version, and any additional bugs are reported. I think we can close this issue.
Comment #5
BoogieBug commented