Bug report (3.0.0): $ is not a function
-
var $ = jQuery; function wccpf_init_color_pickers_1() {}$(document).ready(function() {if( typeof $.spectrum != "undefined" ){if( typeof wccpf_init_color_pickers_1 != "undefined" ){wccpf_opt.color_picker_functions.push( "wccpf_init_color_pickers_1" );wccpf_init_color_pickers_1();}} });before if( typeof $.spectrum, $ was undefined. As a temporary fix I added a var $ = jQuery; just after the opening brace.
in includes\wcff-injector.php I now have on line 645
$color_picker_script .= '$(document).ready(function() {var $=jQuery;if( typeof $.spectrum != "undefined" ){';
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Bug report (3.0.0): $ is not a function’ is closed to new replies.