Unlike other images (loaded from javascript with a ../image prefix) loading.gif and closelabel.gif aren't loaded if Drupal isn't at the site root.
Hardcoded :
fileLoadingImage: '/sites/all/modules/jlightbox/images/loading.gif'
The module should add something like
var root=' print $jlightbox_site_root; ';so one may be able to modify the directory for these images.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 808570-img-path.patch | 1.6 KB | drzraf |
| #2 | 808570-img-path.patch | 1.93 KB | drzraf |
Comments
Comment #1
drzraf commented- or, at least, remove the leading '/'
- or better, use Drupal.settings.basePath
Comment #2
drzraf commentedHere is a patch (it may not applied because I changed to *uncompressed.js)
It makes use of Drupal.settings via drupal_add_js(,'setting')
It solved the problem, I hope it's the Drupal way things have to be done, wish it can be pushed.
best regards
Comment #3
drzraf commenteduseless stuff was kept in the previous patch.
This one is clean
Comment #4
drzraf commented