Subversion Repositories SmartDukaan

Rev

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

Rev 24191 Rev 24271
Line 17... Line 17...
17
		'rejectedValue : '+errorObject.rejectedValue+'\n'+
17
		'rejectedValue : '+errorObject.rejectedValue+'\n'+
18
		'message : '+errorObject.message);
18
		'message : '+errorObject.message);
19
}
19
}
20
 
20
 
21
$( document ).ajaxError(function(event, jqxhr, settings, thrownError) {
21
$( document ).ajaxError(function(event, jqxhr, settings, thrownError) {
22
	// $( ".log" ).text( "Triggered ajaxError handler." );
22
	if(typeof loaderDialogObj!="undefined")
23
	loaderDialogObj.modal('hide');
23
		loaderDialogObj.modal('hide');
24
	if(jqxhr.status == 400){
24
	if(jqxhr.status == 400){
25
		// $('#error-prompt-model').modal();
25
		// $('#error-prompt-model').modal();
26
		badRequestAlert(jqxhr);	
26
		badRequestAlert(jqxhr);	
27
	}else{
27
	}else{
28
		internalServerErrorAlert(jqxhr);
28
		internalServerErrorAlert(jqxhr);
29
	}
29
	}
30
});
30
});
31
 
31
 
32
$(document).ajaxComplete(function(){
32
$(document).ajaxComplete(function(){
-
 
33
	if(typeof loaderDialogObj!="undefined")
33
	loaderDialogObj.modal('hide');
34
		loaderDialogObj.modal('hide');
34
});
35
});
35
 
36
 
36
$( document ).ajaxStart(function() {
37
$( document ).ajaxStart(function() {
-
 
38
		if(typeof loaderDialogObj!="undefined")
37
		loaderDialogObj.modal('show');
39
			loaderDialogObj.modal('hide');
38
		if(typeof showAlert !="undefined" && showAlert && $('#order-details').length == 0) {
40
		if(typeof showAlert !="undefined" && showAlert && $('#order-details').length == 0) {
39
			var investmentDialog = bootbox.dialog({
41
			var investmentDialog = bootbox.dialog({
40
				title: '<h3	class="text-danger">ATTENTION! LOW INVESTMENT ALERT!</h3>',
42
				title: '<h3	class="text-danger">ATTENTION! LOW INVESTMENT ALERT!</h3>',
41
				message : "<h3>Dear Partner, your investment is below 90%</h3>"
43
				message : "<h3>Dear Partner, your investment is below 90%</h3>"
42
					+  "<dl>"
44
					+  "<dl>"