Subversion Repositories SmartDukaan

Rev

Rev 26493 | Rev 26744 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26493 Rev 26512
Line 7... Line 7...
7
			function() {
7
			function() {
8
				console.log(itemCatalogId);
8
				console.log(itemCatalogId);
9
				doAjaxRequestHandler(context + "/getProductInfo?catalogId="
9
				doAjaxRequestHandler(context + "/getProductInfo?catalogId="
10
						+ itemCatalogId, "GET", function(response) {
10
						+ itemCatalogId, "GET", function(response) {
11
					$('.product-info-container').html(response);
11
					$('.product-info-container').html(response);
12
					$("#campareItem").hide();
12
					$("#compareItem").hide();
13
				});
13
				});
14
			});
14
			});
15
 
15
 
16
	$(".campare-with").live('click', function() {
16
	$(".compare-with").live('click', function() {
17
		$("#campareItem").show();
17
		$("#compareItem").show();
18
	});
18
	});
19
 
19
 
20
	$(".product-compare-info").live(
20
	$(".product-compare-info").live(
21
			'click',
21
			'click',
22
			function() {
22
			function() {
-
 
23
				catalogIds = [1021975, 1022020];
-
 
24
				if(typeof compareCatalogId!="undefined") {
-
 
25
					catalogIds.push(compareCatalogId);
-
 
26
				}
23
				doAjaxRequestHandler(context
27
				doAjaxRequestHandler(context
24
						+ "/getProductCompareInfo?catalogId=" + itemCatalogId
28
						+ "/getProductCompareInfo?catalogIds=" + catalogIds.join(","), "GET",
25
						+ "&catalogId=" + campareItemCatalogId, "GET",
-
 
26
						function(response) {
29
						function(response) {
27
					console.log(response)
30
					console.log(response)
28
							$('#' + "main-content").html(response);
31
							$('#' + "main-content").html(response);
29
						});
32
						});
30
			});
33
			});