[ZendTo] Minor javascript defect
John Thurston
john.thurston at alaska.gov
Thu Mar 8 23:07:53 GMT 2018
The "Add Recipients" pop-up box asks for
/js/facebox/closelabel.png
/js/facebox/loading.gif
These absolute paths work ok if you are serving your content directly
from the local apache (and /js is published). I'm serving my content
with a reverse-proxy server, and those images fail to load because /js
isn't the root of the application so isn't proxied.
I've gotten correct behavior by editing
/opt/zendto/www/js/main.js
and removing the leading slash from those file names at the bottom of
the file, making them relative references:
> /* Setup Facebox */
> $.facebox.settings.closeImage = 'js/facebox/closelabel.png'
> $.facebox.settings.loadingImage = 'js/facebox/loading.gif'
Does such a patch break the application for anyone else?
Is this appropriate to roll into the next rev so I don't need to make a
local patch-file and re-apply on my updates?
--
Do things because you should, not just because you can.
John Thurston 907-465-8591
John.Thurston at alaska.gov
Department of Administration
State of Alaska
More information about the ZendTo
mailing list