Subversion Repositories SmartDukaan

Rev

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

Rev 23419 Rev 23500
Line 25... Line 25...
25
	});
25
	});
26
	
26
	
27
});
27
});
28
 
28
 
29
function getRetailerDetailsByEmailIdOrMobileNumber(domId, emailIdOrMobileNumber){
29
function getRetailerDetailsByEmailIdOrMobileNumber(domId, emailIdOrMobileNumber){
30
	doAjaxRequestHandler(context+"/retailerDetail/?emailIdOrMobileNumber="+emailIdOrMobileNumber, "GET", function(response){
30
	doGetAjaxRequestHandler(context+"/retailerDetail/?emailIdOrMobileNumber="+emailIdOrMobileNumber, function(response){
31
		$('#' + domId).html(response);
31
		$('#' + domId).html(response);
32
	});
32
	});
33
}
33
}
34
 
34
 
35
 
35
 
Line 63... Line 63...
63
	}
63
	}
64
}
64
}
65
 
65
 
66
function loadDistrictNames(stateName){
66
function loadDistrictNames(stateName){
67
	if(undefined != $("#districtName")){
67
	if(undefined != $("#districtName")){
68
		doAjaxRequestHandler(context+"/district/all/stateName?stateName="+stateName, "GET", function(response){
68
		doGetAjaxRequestHandler(context+"/district/all/stateName?stateName="+stateName, function(response){
69
			console.log(response);
69
			console.log(response);
70
			var districtMasters = response.response;
70
			var districtMasters = response.response;
71
			//districtMasters = districtMasters.response;
71
			//districtMasters = districtMasters.response;
72
			var districtNameElements = '<option value="" disabled selected>District Name</option>';
72
			var districtNameElements = '<option value="" disabled selected>District Name</option>';
73
			for(index = 0; index < districtMasters.length; index++){
73
			for(index = 0; index < districtMasters.length; index++){
Line 77... Line 77...
77
		});
77
		});
78
	}
78
	}
79
}
79
}
80
 
80
 
81
function retailerInfo(domId){
81
function retailerInfo(domId){
82
	doAjaxRequestHandler(context+"/retailerInfo", "GET", function(response){
82
	doGetAjaxRequestHandler(context+"/retailerInfo", function(response){
83
		$('#' + domId).html(response); 
83
		$('#' + domId).html(response); 
84
	});
84
	});
85
}
85
}
86
86