diff --git a/public/static/kernel.js b/public/static/kernel.js index 38bbb78de..272310421 100644 --- a/public/static/kernel.js +++ b/public/static/kernel.js @@ -36,7 +36,6 @@ function ajax_load_proc(wapper,url,isBanner){ function BannerCycle(banner_index){ var banner = banners[banner_index]; - // $.getScript('/static/jquery.cycle.all.latest.js', function(){ if (!!$.prototype.cycle && (banner.image_loaded==banner.image_count)){ $(banner.banner_name).ready(function() { $(banner.banner_name).cycle({ @@ -48,11 +47,9 @@ function BannerCycle(banner_index){ }); }); }else{ - // console.log("Waiting"); - $.getScript('/static/jquery.cycle.all.latest.js'); + if (!!$.prototype.cycle) $.getScript('/static/jquery.cycle.all.latest.js'); setTimeout("BannerCycle("+banner_index+")",500); } - // }); } // Ad Banner FX code [start]