Subversion Repositories SmartDukaan

Rev

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

Rev 23569 Rev 23783
Line 67... Line 67...
67
			var payload = orderDetailsPayload();
67
			var payload = orderDetailsPayload();
68
			if(!validateOrderDetails()){
68
			if(!validateOrderDetails()){
69
				alert("Please fix highlighted errors");
69
				alert("Please fix highlighted errors");
70
				return false;
70
				return false;
71
			}
71
			}
72
			doAjaxRequestWithJsonHandler(context+"/create-order", "POST", payload, function(response){
72
			doPostAjaxRequestWithJsonHandler(context+"/create-order", payload, function(response){
73
				emptyBag();
73
				emptyBag();
74
				$('#main-content').html(response);
74
				$('#main-content').html(response);
75
			});
75
			});
76
            return false; // required to block normal submit since you used ajax
76
            return false; // required to block normal submit since you used ajax
77
         }
77
         }