Subversion Repositories SmartDukaan

Rev

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

Rev 26817 Rev 26830
Line 152... Line 152...
152
		customerAddress['phoneNumber'] = $("#alternatePhone").val();
152
		customerAddress['phoneNumber'] = $("#alternatePhone").val();
153
		customerAddress['country'] = "India";
153
		customerAddress['country'] = "India";
154
		console.log(customerAddress);
154
		console.log(customerAddress);
155
		doPostAjaxRequestWithJsonHandler(`${context}/customer/address?customerId=${customerId}`, JSON.stringify(customerAddress), function(response){
155
		doPostAjaxRequestWithJsonHandler(`${context}/customer/address?customerId=${customerId}`, JSON.stringify(customerAddress), function(response){
156
			$("#address-body").prepend(getAddressTr(response.response));
156
			$("#address-body").prepend(getAddressTr(response.response));
-
 
157
			$('#newaddressModal').modal('toggle');
157
			$("#address-body").find('a.select-address').click();
158
			$("#address-body").find('a.select-address').click();
158
		});
159
		});
159
	});
160
	});
160
	
161
	
161
}
162
}