Subversion Repositories SmartDukaan

Rev

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

Rev 23914 Rev 23918
Line 26... Line 26...
26
	}else{
26
	}else{
27
		internalServerErrorAlert(jqxhr);
27
		internalServerErrorAlert(jqxhr);
28
	}
28
	}
29
});
29
});
30
 
30
 
-
 
31
$( document ).ajaxStart(function() {
-
 
32
		if(typeof showAlert !="undefined" && showAlert) {
-
 
33
			bootbox.dialog({
-
 
34
				title: "<b>Low on Investments Alert!</b>",
-
 
35
				message : "<h4>Dear Partner, your investment is below 90%</h4>"
-
 
36
					+  "<dl>"
-
 
37
					+  "<dt>Total Investment Required</dt></dd>- " + minimumInvestmentAmount +"</dd>"
-
 
38
					+ "<dt>Total Invested Amount</dt></dd>- " + totalInvestedAmount +"</dd>"
-
 
39
					+  "<dt>Amount Short </dt><dd>- " + shortAmount+"</dd></dl>"
-
 
40
			 		+ "It is required to ensure minimum investment with us!"
-
 
41
			 		+ '<br><span class="small">Note - Please login again if your wallet/investments are updated!</span>',
-
 
42
			 	buttons:{
-
 
43
			 			cancel: {
-
 
44
			 				label: "OK",
-
 
45
			 		        className: 'btn-danger'
-
 
46
			 			}
-
 
47
			 		}
-
 
48
			});
-
 
49
		}
-
 
50
	});
-
 
51
 
-
 
52
 
31
 
53
 
32
function doAjaxRequestWithParamsHandler(urlString, httpType, params, callback_function){
54
function doAjaxRequestWithParamsHandler(urlString, httpType, params, callback_function){
33
	$.ajax({
55
	$.ajax({
34
	   url: urlString,
56
	   url: urlString,
35
	   async: true,
57
	   async: true,