Subversion Repositories SmartDukaan

Rev

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

Rev 27826 Rev 27927
Line 47... Line 47...
47
	}
47
	}
48
});
48
});
49
function ajaxStartHandler() {
49
function ajaxStartHandler() {
50
	if (typeof loaderDialogObj != "undefined")
50
	if (typeof loaderDialogObj != "undefined")
51
		loaderDialogObj.modal('show');
51
		loaderDialogObj.modal('show');
52
	if (typeof isInvestmentOk != "undefined" && !isInvestmentOk
52
	/*if (typeof isInvestmentOk != "undefined" && !isInvestmentOk
53
		&& $('#order-details').length == 0) {
53
		&& $('#order-details').length == 0) {
54
		var investmentDialog = bootbox
54
		var investmentDialog = bootbox
55
			.dialog({
55
			.dialog({
56
				title: '<h3	class="text-danger">ATTENTION!! ORDERING THROUGH APP MAY BE BLOCKED DUE TO LOW INVESTMENTS!</h3>',
56
				title: '<h3	class="text-danger">ATTENTION!! ORDERING THROUGH APP MAY BE BLOCKED DUE TO LOW INVESTMENTS!</h3>',
57
				message: "<h3>Dear Partner, your investments are low by "
57
				message: "<h3>Dear Partner, your investments are low by "
Line 83... Line 83...
83
			var height = window.innerHeight - dialogRect.height;
83
			var height = window.innerHeight - dialogRect.height;
84
			var width = window.innerWidth - dialogRect.width;
84
			var width = window.innerWidth - dialogRect.width;
85
			var left = Math.floor(Math.random() * width) - dialogRect.left
85
			var left = Math.floor(Math.random() * width) - dialogRect.left
86
			var top = Math.floor(Math.random() * height) - dialogRect.top
86
			var top = Math.floor(Math.random() * height) - dialogRect.top
87
			$(dialogEl).css("left", left).css("top", top);
87
			$(dialogEl).css("left", left).css("top", top);
88
		});
88
		});*/
89
	}
89
	}
90
}
90
}
91
$(document).ajaxStart(ajaxStartHandler);
91
$(document).ajaxStart(ajaxStartHandler);
92
 
92
 
93
function doAjaxRequestWithParamsHandler(urlString, httpType, params,
93
function doAjaxRequestWithParamsHandler(urlString, httpType, params,