'});console.log("First done - AJAX initialization");$.ajaxSetup({cache:false});console.log("Second done - AJAX initialization");$(".item-page").jscroll({debug:true,padding:0,nextSelector:"a.ai-next",loadingHtml:'
',autoTrigger:true,autoTriggerUntil:100,callback:function(){console.log("Callback done - AJAX");var text=$(".ai-results").text();if(text){var matches=text.match(/ ([0-9]+) - /);if(matches){var start=parseInt(matches[1]);var cnt=$(".items-row").length;var to=start+cnt-1;text=text.replace(/ - [0-9]+ /," - "+to+" ");$(".ai-results").text(text);}}}});console.log("Third done - AJAX initialization");});