Javascript bug (header, footer)
-
Hello there,
after the upgrade from 1.4.6.1 the popups doesnt work anymore when i put them in to the header or footer in the very popular “Sydney Theme”. I have found out that the bug caused by the “public-min.js”
The location which causes the problem in the “public-min.js” (v. 1.6.0.1) is:
b=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).scrollTop(),e=t+u>=v;e?(p||$(window).unbind(“scroll”,b),s(d,!0,!1)):s(d,!1,!1)},100)},w=function(){o&&clearTimeout(o),o=window.setTimeout(function(){s(d,!0,!1)},1e3*h)},_=n(“spu_box_”+d);if((void 0==_||””==_||f&&a)&&(“seconds”==i&&w(),”percentage”==i&&($(window).bind(“scroll”,b),b()),window.location.hash&&window.location.hash.length>0)){var x=window.location.hash,E;x.substring(1)===e.attr(“id”)&&setTimeout(function(){s(d,!0,!1)},100)}e.on(“click”,”.spu-close-popup”,function(){s(d,!1,!1),”percentage”==i&&$(window).unbind(“scroll”,b)}),$(document.body).on(“click”,’a[href=”#spu-‘+d+'”], .spu-open-‘+d,function(t){t.preventDefault(),s(d,!0,!1)}),$(‘a[href=”#spu-‘+d+'”], .spu-open-‘+d).css(“cursor”,”pointer”).addClass(“spu-clickable”),e.find(“.gform_wrapper
where in v.1.4.6.1 (“public-min.js”) it did work
w=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).scrollTop(),e=t+u>=v;e?(p||$(window).unbind(“scroll”,w),s(d,!0,!1)):s(d,!1,!1)},100)},b=function(){o&&clearTimeout(o),o=window.setTimeout(function(){s(d,!0,!1)},1e3*h)},_=n(“spu_box_”+d);if((void 0==_||””==_||f&&a)&&(“seconds”==i&&b(),”percentage”==i&&($(window).bind(“scroll”,w),w()),window.location.hash&&window.location.hash.length>0)){var x=window.location.hash,E;x.substring(1)===e.attr(“id”)&&setTimeout(function(){s(d,!0,!1)},100)}e.on(“click”,”.spu-close-popup”,function(){s(d,!1,!1),”percentage”==i&&$(window).unbind(“scroll”,w)}),$(‘a[href=”#spu-‘+d+'”]’).on(“click”,function(t){t.preventDefault(),s(d,!0,!1)}).css(“cursor”,”pointer”).addClass(“spu-clickable”),e.find(“.gform_wrappe
maybe its possible to fix that to make it compatible with all other themes and prevent this issue.
You can check out an example of this issue here: http://www.schneidereiberlin.de/
Look at the footer
The topic ‘Javascript bug (header, footer)’ is closed to new replies.