Subversion Repositories SmartDukaan

Rev

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

Rev 31687 Rev 31702
Line 210... Line 210...
210
function doAjaxGetDownload(urlString, fileName) {
210
function doAjaxGetDownload(urlString, fileName) {
211
	console.log("fileName : " + fileName);
211
	console.log("fileName : " + fileName);
212
	doAjaxDownload(urlString, "GET", null, fileName);
212
	doAjaxDownload(urlString, "GET", null, fileName);
213
}
213
}
214
 
214
 
215
function doAjaxPostDownload(urlString, data, fileName) {
215
function doAjaxPostDownload(urlString, data, fileName, callback) {
216
	doAjaxDownload(urlString, "POST", data, fileName);
216
	doAjaxDownload(urlString, "POST", data, fileName, callback);
217
}
217
}
218
 
218
 
219
function doAjaxDownload(urlString, httpType, data, fileName) {
219
function doAjaxDownload(urlString, httpType, data, fileName, callback) {
220
	xhttp = new XMLHttpRequest();
220
	xhttp = new XMLHttpRequest();
221
	if (typeof loaderDialogObj != "undefined")
221
	if (typeof loaderDialogObj != "undefined")
222
		loaderDialogObj.modal('show');
222
		loaderDialogObj.modal('show');
223
	xhttp.onreadystatechange = function () {
223
	xhttp.onreadystatechange = function () {
224
		var a;
224
		var a;
Line 948... Line 948...
948
$(document).on('click', ".manage-pcm", function () {
948
$(document).on('click', ".manage-pcm", function () {
949
	managePCM();
949
	managePCM();
950
});
950
});
951
 
951
 
952
function managePCM() {
952
function managePCM() {
953
	doGetAjaxRequestHandler(`${context}/brand-pcm`, function (
953
	doGetAjaxRequestHandler(`${context}/brand-pcm`, function (response) {
954
		response) {
-
 
955
		$('#main-content').html(response);
954
		$('#main-content').html(response);
956
	});
955
	});
957
}
956
}