Subversion Repositories SmartDukaan

Rev

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

Rev 9301 Rev 9708
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
			jQuery.ajax({
-
 
411
				type: "POST",
-
 
412
				url: "/cart/" + itemId + "?_method=put&productid=" + itemId + "&quantity=" + quantity,
410
			window.location = "/cart/" + itemId + "?_method=put&productid=" + itemId + "&quantity=" + quantity,
413
				data: "productid=" + itemId + "&quantity=" + quantity,
-
 
414
				success: function(msg){
-
 
415
					window.location.reload();
-
 
416
				}
-
 
417
			});
-
 
418
		}
411
		}
419
	});
412
	});
420
	
413
	
421
	$('#submitAddress').click(function(){
414
	$('#submitAddress').click(function(){
422
		if($('#guardianName').length > 0 && $('#guardianName').val() === '') {
415
		if($('#guardianName').length > 0 && $('#guardianName').val() === '') {