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

CommentFileSizeAuthor
#3 808570-img-path.patch1.6 KBdrzraf
#2 808570-img-path.patch1.93 KBdrzraf

Comments

drzraf’s picture

- or, at least, remove the leading '/'
- or better, use Drupal.settings.basePath

drzraf’s picture

StatusFileSize
new1.93 KB

Here 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

drzraf’s picture

StatusFileSize
new1.6 KB

useless stuff was kept in the previous patch.
This one is clean

drzraf’s picture

Category: feature » bug
Status: Active » Needs review