jigoshop/jigoshop — Issue #344: when fancybox is disabled: error on line 16 in script.js
Author: piffpaffpuff
Created: 2011-10-21 19:30:33+00:00
State: open

when you disable fancybox through the available option you get an error at line 16 of script.js. this is because script.js still contains and runs the fancybox init script although the fancybox.js isn't enqueued.

- maybe add the init script to a seperate file and enqueue it
- or print a javascript variable (jigoshopLoadFancybox) into the header and read it in script.js