Bug #22
Lightbox support images ('close' and 'loading') fail in some cases
| Status : | Closed | Start : | 05/13/2008 | |
| Priority : | Normal | Due date : | ||
| Assigned to : | Davide D'Agostino | % Done : | 0% |
|
| Category : | - | Spent time : | - | |
| Target version : | 2008 | |||
Description
The absolute locations of the close.gif and loading.gif images used by LightBox means that the images are not shown in the case where the rails app is not at the root of the supporting webserver - e.g www.mydomain.com/apps/<rails_app_here>
A temporary soln is to include the following javascript in layout to override the locations defined in the lightbox javascript. Not ideal but it works.
<script type="text/javascript">
var fileLoadingImage = "<%= image_path("lightbox/loading.gif") >";
var fileBottomNavCloseImage = "<= image_path("lightbox/close.gif") %>";
</script>
