Subversion Repositories SmartDukaan

Rev

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

Rev 33124 Rev 33128
Line 502... Line 502...
502
}
502
}
503
 
503
 
504
function loadASTDetail(stateName) {
504
function loadASTDetail(stateName) {
505
	doGetAjaxRequestHandler(
505
	doGetAjaxRequestHandler(
506
		context + "/astDetail?stateName=" + stateName,
506
		context + "/astDetail?stateName=" + stateName,
507
		function (response) {
507
		function (asts) {
508
			$('#retailerAstId').find('option').not(':first').remove();
508
			$('#retailerAstId').find('option').not(':first').remove();
509
			for (let ast of response.ast_info) {
509
			for (let ast of asts) {
510
				var opt = $("<option>").val(ast.ast_id).text(ast.area.name + "(" + ast.area.description + ")" + " - " + ast.territory.name + "(" + ast.territory.description + ")");
510
				var opt = $("<option>").val(ast.id).text(ast.area + "(" + ast.areaDescription + ")" + " - " + ast.territory + "(" + ast.territoryDescription + ")");
511
				$('#retailerAstId').append(opt);
511
				$('#retailerAstId').append(opt);
512
			}
512
			}
513
		}
513
		}
514
	);
514
	);
515
}
515
}