Subversion Repositories SmartDukaan

Rev

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

Rev 27682 Rev 27688
Line 128... Line 128...
128
			return false;
128
			return false;
129
		}
129
		}
130
		customerObj['firstName'] = $("input.firstName").val();
130
		customerObj['firstName'] = $("input.firstName").val();
131
		customerObj['lastName'] = $("input.lastName").val();
131
		customerObj['lastName'] = $("input.lastName").val();
132
		customerObj['emailId'] = $("#emailIds").val();
132
		customerObj['emailId'] = $("#emailIds").val();
133
		
133
 
134
		console.log(first);
-
 
135
		console.log(last);
-
 
136
		console.log(customerObj['emailId']);
134
		console.log(customerObj['emailId']);
137
		customerObj['mobileNumber'] = $("input.phone").val();
135
		customerObj['mobileNumber'] = $("input.phone").val();
138
		doPostAjaxRequestWithJsonHandler(`${context}/customer/add`, JSON.stringify(customerObj), function(response){
136
		doPostAjaxRequestWithJsonHandler(`${context}/customer/add`, JSON.stringify(customerObj), function(response){
139
			alert("Customer added");
137
			alert("Customer added");
140
			$( "input.search-phone").val(customerObj['mobileNumber']).change();
138
			$( "input.search-phone").val(customerObj['mobileNumber']).change();