Rev 26512 | Rev 27047 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(function() {$(".product-detail").live('click', function() {loadItems("main-content");});$(".product-info").live('click',function() {console.log(itemCatalogId);doAjaxRequestHandler(context + "/getProductInfo?catalogId="+ itemCatalogId, "GET", function(response) {$('.product-info-container').html(response);$("#compareItem").hide();});});$(".compare-with").live('click', function() {$("#compareItem").show();});$(".product-compare-info").live('click',function() {catalogIds = [1021975, 1022020];if(typeof compareCatalogId!="undefined") {catalogIds.push(compareCatalogId);}doAjaxRequestHandler(`${context}/getProductCompareInfo?catalogIds=` + catalogIds.join(","), "GET",function(response) {console.log(response)$('#' + "main-content").html(response);});});});function loadItems(domId) {doAjaxRequestHandler(context + "/getProducts", "GET", function(response) {$('#' + domId).html(response);});}