VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: Marco Dimichele on October 07, 2008, 11:46:36 AM

Title: Lightbox / slimbox special characters patch
Post by: Marco Dimichele on October 07, 2008, 11:46:36 AM
The slimbox version included in virtuemart does not handle properly images with special characters, like (, [ and sometimes spaces.
The bug can be solved editing the file /components/com_virtuemart/js/slimbox/js/slimbox.js,
and replacing the line 139:
this.image.style.backgroundImage = 'url('+this.images[this.activeImage][0]+')';
with:
this.image.style.backgroundImage = 'url("'+this.images[this.activeImage][0]+'")';