Author Topic: Lightbox / slimbox special characters patch  (Read 2599 times)

Marco Dimichele

  • Beginner
  • *
  • Posts: 5
Lightbox / slimbox special characters patch
« 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]+'")';