When settings is returned via ajax using ajax_command_settings().
The settings is not null and if it doesnt have jcarousel property, it results in js error
settings = settings || Drupal.settings;
"settings.jcarousel is undefined"
here is a patch to fix this
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | jcarousel_ajax_fix-1330386-2.patch | 478 bytes | chia |
| jcarousel_ajax_settings_fix.patch | 4.42 KB | chia |
Comments
Comment #1
juampynr commentedVerified. Applies cleanly and fixes the issue.
Thanks.
Comment #2
quicksketchCould we simplify this patch (and the nested logic) just by using:
At the top of our behavior? This would help with consistency between the D6 and D7 versions. It'd also make the patch easier for me to review.
Comment #3
chia commentedSimplified the patch by removing nested logic.
Comment #4
myha commentedIn D6 for me working code is:
Comment #5
quicksketchThanks guys. I used chia's patch and amended it with myha's suggestion. Committed to 2.x branches.