remove spacer.png hard coded path in flir.js

omerida - March 12, 2009 - 16:06
Project:Facelift Image Replacement Integration
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

flir.js assumes the module is installed in sites/all/modules, if you install it elsewher you get broken images in IE6 for requests to spacer.png. the path to spacer.png should be an option that is auto-discovered.

#1

btopro - March 17, 2009 - 22:34

is this still the case in 1.3-beta?

#2

omerida - May 11, 2009 - 20:01

I'm not sure - we decided not to use the flir module.

#3

iweb - July 28, 2009 - 07:52

I've just installed the dev version, and it's definitely still looking in sites/all/modules/flir/flir for spacer.png

I've looked further into this and the modules/flir/flir/flir.js has the path hard coded at line 427 as below:

        img.src = this.options.path+'sites/all/modules/flir/flir/spacer.png';

The spacer.png file lives in the same directory, and changing flir.js to the following seems to work:

        img.src = './spacer.png';

 
 

Drupal is a registered trademark of Dries Buytaert.