Subversion Repositories SmartDukaan

Rev

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

Rev 1922 Rev 2036
Line 28... Line 28...
28
		jQuery.ajax({
28
		jQuery.ajax({
29
			type: "POST",
29
			type: "POST",
30
			url: "/addtocart",
30
			url: "/addtocart",
31
			data: "productid=" + $("#item_id").val(),
31
			data: "productid=" + $("#item_id").val(),
32
			success: function(msg)	{
32
			success: function(msg)	{
33
				$("#cartItemCount").html((msg*1));
33
	   			 if(msg==""){
34
				window.location = "/cart";
34
					 window.location = "/cart";
-
 
35
				 }else{
-
 
36
					 alert(msg);
35
			}
37
				 }			}
36
		});
38
		});
37
	});
39
	});
38
	
40
	
39
	$("#colorselector").change(function(){
41
	$("#colorselector").change(function(){
40
		var output = "";
42
		var output = "";