Subversion Repositories SmartDukaan

Rev

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

Rev 23349 Rev 23353
Line 69... Line 69...
69
	}
69
	}
70
}
70
}
71
 
71
 
72
function loadDistrictNames(stateName){
72
function loadDistrictNames(stateName){
73
	if(undefined != $("#districtName")){
73
	if(undefined != $("#districtName")){
74
		var response = doGetAjaxRequest(context+"/district/all/stateName?stateName="+stateName);
74
		doAjaxRequestHandler(context+"/district/all/stateName?stateName="+stateName, "GET", function(response){
75
		console.log(response);
75
			console.log(response);
76
		var districtMasters = response.response;
76
			var districtMasters = response.response;
77
		//districtMasters = districtMasters.response;
77
			//districtMasters = districtMasters.response;
78
		var districtNameElements = '<option value="" disabled selected>District Name</option>';
78
			var districtNameElements = '<option value="" disabled selected>District Name</option>';
79
		for(index = 0; index < districtMasters.length; index++){
79
			for(index = 0; index < districtMasters.length; index++){
80
			districtNameElements = districtNameElements + '<option value="'+districtMasters[index].name+'">'+districtMasters[index].name+'</option>';
80
				districtNameElements = districtNameElements + '<option value="'+districtMasters[index].name+'">'+districtMasters[index].name+'</option>';
81
		}
81
			}
82
		$('#districtName').html(districtNameElements);
82
			$('#districtName').html(districtNameElements);
-
 
83
		});
83
	}
84
	}
84
}
85
}
85
 
86
 
86
function retailerInfo(domId){
87
function retailerInfo(domId){
87
	doAjaxRequestHandler(context+"/retailerInfo", "GET", function(response){
88
	doAjaxRequestHandler(context+"/retailerInfo", "GET", function(response){