Subversion Repositories SmartDukaan

Rev

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

Rev 29068 Rev 32628
Line 12... Line 12...
12
				return false;
12
				return false;
13
			}
13
			}
14
			var json = orderCustomerDetailsJson();
14
			var json = orderCustomerDetailsJson();
15
			console.log("orderCustomerDetails json = " + json);
15
			console.log("orderCustomerDetails json = " + json);
16
			if (confirm("Are you sure you want to update Customer Details!") == true) {
16
			if (confirm("Are you sure you want to update Customer Details!") == true) {
17
				var invoiceNumber = $("#search-order-text").val();
17
				var invoiceNumber = $("#search-invoice-text").val();
18
				doPutAjaxRequestWithJsonHandler(context + "/customerDetails?invoiceNumber=" + invoiceNumber, json, function(response) {
18
				doPutAjaxRequestWithJsonHandler(context + "/customerDetails?invoiceNumber=" + invoiceNumber, json, function(response) {
19
					$('#search-order-details-container').html(response);
19
					$('#search-order-details-container').html(response);
20
					alert("Customer Details has been successfully.");
20
					alert("Customer Details has been successfully.");
21
				});
21
				});
22
				return false; // required to block normal submit since you used ajax
22
				return false; // required to block normal submit since you used ajax