Closed (fixed)
Project:
Greybox
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2006 at 22:30 UTC
Updated:
2 Feb 2007 at 21:45 UTC
The X Close Window image does not display in IE7.
This is an awesome module, THANK YOU!!
Comments
Comment #1
colorado commentedI just noticed that the module produces the following path to that image when I look at the image properties in my browser - I assume this is the problem:
http://www.mysite.com/modules/greybox,modules/greybox/images/close.gif
By removing greybox,modules/ from the path the image displays correctly.
Comment #2
colorado commentedLine 17 of greybox.js parobably needs to be changed to render the image properly:
+ "
");
Comment #3
colorado commentedOops - here is that line 17 again:
+ "<img src='" + Drupal.settings.greybox.sitepath +"/images/close.gif' alt='Close window'/></div>");Comment #4
AjK commentedFor some reason filed under "Janode" and I believe should be "Greybox" ?
Comment #5
colorado commentedYes my bad. Thanks for moving this.
Comment #6
Gurpartap Singh commentedAlthough there's no such case in any browser on linux and windows xp this side. But try changing that line to:
+ "<img src='" + Drupal.settings.greybox.sitepath[0] +"/images/close.gif' alt='Close window'Maybe you have customized the drupal_add_js() part of greybox module? Or any thing in js file?
Comment #7
Gurpartap Singh commentedSorry, here's complete line:
+ "<img src='" + Drupal.settings.greybox.sitepath[0] +"/images/close.gif' alt='Close window'/></div>");Comment #8
colorado commentedYEP, that fixed it -- thank you very much Gurpartap. I guess that [0] after sitepath should be patched in to the distributed code, unless it messes up something else of course :-)
Comment #9
Gurpartap Singh commentedFix goes another way as it was meant to be. New version released.
Comment #10
colorado commentedI just updated to version 5.x-1.1 and now the close image is broken again (at least in IE7). Here's what the path to the image shows in properties in my browser:
http://mysite.com/subdirectory/node/modules/greybox/images/close.gif
Whereas in order for it to work, it should read:
http://mysite.com/subdirectory/modules/greybox/images/close.gif
I tried adding that [0] again as above, but that did not work this time.
Comment #11
colorado commentedjust changing version number to 5.x-1.1
Comment #12
Gurpartap Singh commentedDoes changing:
drupal_add_js(array('greybox' => array('sitepath' => $path)), 'setting');to:
drupal_add_js(array('greybox' => array('sitepath' => base_path() .$path)), 'setting');solve the problem?
Comment #13
colorado commentedYES indeed it did! The image appears! Thank you again :-D
Comment #14
Gurpartap Singh commentedComment #15
Grinin commentedI've got the latest version but the image still won't show up.... I'm getting this in the red X box.
http://bhnbc.chrisllorca.com/undefined/images/close.gif
$path is undefined?? That seems weird.
Any ideas?
Comment #16
Gurpartap Singh commentedComment #17
(not verified) commented