Posted by drzraf on May 25, 2010 at 8:12am
1 follower
| Project: | jQuery Lightbox |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
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='
<?php
print $jlightbox_site_root;
?>Thanks
Comments
#1
- or, at least, remove the leading '/'
- or better, use Drupal.settings.basePath
#2
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
#3
useless stuff was kept in the previous patch.
This one is clean
#4