Subversion Repositories SmartDukaan

Rev

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

Rev 30075 Rev 30122
Line 48... Line 48...
48
});
48
});
49
 
49
 
50
function ajaxStartHandler() {
50
function ajaxStartHandler() {
51
	if (typeof loaderDialogObj != "undefined")
51
	if (typeof loaderDialogObj != "undefined")
52
		loaderDialogObj.modal('show');
52
		loaderDialogObj.modal('show');
53
	/*if (typeof isInvestmentOk != "undefined" && !isInvestmentOk
-
 
54
		&& $('#order-details').length == 0) {
-
 
55
		var investmentDialog = bootbox
-
 
56
			.dialog({
-
 
57
				title: '<h3	class="text-danger">ATTENTION!! ORDERING THROUGH APP MAY BE BLOCKED DUE TO LOW INVESTMENTS!</h3>',
-
 
58
				message: "<h3>Dear Partner, your investments are low by "
-
 
59
					+ shortPercentage
-
 
60
					+ "%</h3>"
-
 
61
					+ "<dl>"
-
 
62
					+ "<dt>Investment Should be</dt><dd>- "
-
 
63
					+ minimumInvestmentAmount
-
 
64
					+ "</dd>"
-
 
65
					+ "<dt>Total Invested Amount</dt><dd>-"
-
 
66
					+ totalInvestedAmount
-
 
67
					+ "</dd>"
-
 
68
					+ '<dt>Investment Amount Short By</dt><dd class="text-danger lead">-  '
-
 
69
					+ shortAmount
-
 
70
					+ '</dd></dl>'
-
 
71
					+ '<pre class="text-danger" style="font-size:18px;"><strong>To unblock your Billing, please \nadd Rs.'
-
 
72
					+ minAmountToBeAdded
-
 
73
					+ ' to wallet immediately.</strong></pre>',
-
 
74
				buttons: {
-
 
75
					cancel: {
-
 
76
						label: "OK",
-
 
77
						className: 'btn-primary'
-
 
78
					}
-
 
79
				}
-
 
80
			});
-
 
81
		investmentDialog.on('shown.bs.modal', function() {
-
 
82
			var dialogEl = investmentDialog.find('.modal-content')[0];
-
 
83
			var dialogRect = dialogEl.getBoundingClientRect();
-
 
84
			var height = window.innerHeight - dialogRect.height;
-
 
85
			var width = window.innerWidth - dialogRect.width;
-
 
86
			var left = Math.floor(Math.random() * width) - dialogRect.left
-
 
87
			var top = Math.floor(Math.random() * height) - dialogRect.top
-
 
88
			$(dialogEl).css("left", left).css("top", top);
-
 
89
		});
-
 
90
	}*/
-
 
91
}
53
}
92
 
54
 
93
$(document).ajaxStart(ajaxStartHandler);
55
$(document).ajaxStart(ajaxStartHandler);
94
 
56
 
95
function doAjaxRequestWithParamsHandler(urlString, httpType, params,
57
function doAjaxRequestWithParamsHandler(urlString, httpType, params,