Subversion Repositories SmartDukaan

Rev

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

Rev 9717 Rev 9720
Line 405... Line 405...
405
		if (quantity > 5)	{
405
		if (quantity > 5)	{
406
			alert("You can not order more than 5 pieces of same product.");
406
			alert("You can not order more than 5 pieces of same product.");
407
			$(obj).focus();
407
			$(obj).focus();
408
		}
408
		}
409
		else	{
409
		else	{
-
 
410
			$.ajax({
-
 
411
				type: "POST",
410
			window.location.href = "/cart/" + itemId + "?_method=put&productid=" + itemId + "&quantity=" + quantity;
412
				url: "/cart/" + itemId + "?_method=put&productid=" + itemId + "&quantity=" + quantity,
-
 
413
				async:true
-
 
414
			});
411
		}
415
		}
412
	});
416
	});
413
	
417
	
414
	$('#submitAddress').click(function(){
418
	$('#submitAddress').click(function(){
415
		if($('#guardianName').length > 0 && $('#guardianName').val() === '') {
419
		if($('#guardianName').length > 0 && $('#guardianName').val() === '') {