Appartamento in Affitto Milano – Washington

Bug #22

Lightbox support images ('close' and 'loading') fail in some cases

Added by Anonymous 191 days ago. Updated 31 days ago.

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>

History

10/20/2008 08:18 PM - Davide D'Agostino

Thanks for you fix I will post it in the wiki

10/20/2008 08:18 PM - Davide D'Agostino

  • Status changed from New to Closed

Also available in: Atom PDF