Subversion Repositories SmartDukaan

Rev

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

Rev 23419 Rev 23500
Line 32... Line 32...
32
function getWalletHistoryNextItems(start, end, startTime, endTime){
32
function getWalletHistoryNextItems(start, end, startTime, endTime){
33
	console.log(start);
33
	console.log(start);
34
	console.log(end);
34
	console.log(end);
35
	console.log(+end + +10);
35
	console.log(+end + +10);
36
	console.log(+start + +10);
36
	console.log(+start + +10);
37
	doAjaxRequestHandler(context+"/getPaginatedWalletHistory?startTime="+startTime
37
	doGetAjaxRequestHandler(context+"/getPaginatedWalletHistory?startTime="+startTime
38
	        +"&endTime="+endTime+"&offset="+end, "GET", function(response){
38
	        +"&endTime="+endTime+"&offset="+end, function(response){
39
		var size = $("#wallet-history-paginated .size").text();
39
		var size = $("#wallet-history-paginated .size").text();
40
		if((parseInt(end) + 10) > parseInt(size)){
40
		if((parseInt(end) + 10) > parseInt(size)){
41
			console.log("(end + 10) > size == true");
41
			console.log("(end + 10) > size == true");
42
			$( "#wallet-history-paginated .end" ).text(size);
42
			$( "#wallet-history-paginated .end" ).text(size);
43
		}else{
43
		}else{
Line 62... Line 62...
62
	console.log(start);
62
	console.log(start);
63
	console.log(end);
63
	console.log(end);
64
	console.log(pre);
64
	console.log(pre);
65
	console.log(+end - +10);
65
	console.log(+end - +10);
66
	console.log(+start - +10);
66
	console.log(+start - +10);
67
	doAjaxRequestHandler(context+"/getPaginatedWalletHistory?startTime="+startTime
67
	doGetAjaxRequestHandler(context+"/getPaginatedWalletHistory?startTime="+startTime
68
	        +"&endTime="+endTime+"&offset="+pre, "GET", function(response){
68
	        +"&endTime="+endTime+"&offset="+pre, function(response){
69
		$( "#wallet-history-paginated .end" ).text(+end - +10);
69
		$( "#wallet-history-paginated .end" ).text(+end - +10);
70
		$( "#wallet-history-paginated .start" ).text(+start - +10);
70
		$( "#wallet-history-paginated .start" ).text(+start - +10);
71
		$('#wallet-history-table').html(response);
71
		$('#wallet-history-table').html(response);
72
		$("#wallet-history-paginated .next").prop('disabled', false);
72
		$("#wallet-history-paginated .next").prop('disabled', false);
73
		if (parseInt(pre)==0)
73
		if (parseInt(pre)==0)
Line 77... Line 77...
77
	});
77
	});
78
	
78
	
79
}
79
}
80
 
80
 
81
function loadWallet(domId, startTime, endTime){
81
function loadWallet(domId, startTime, endTime){
82
	doAjaxRequestHandler(context+"/walletDetails?startTime="+startTime
82
	doGetAjaxRequestHandler(context+"/walletDetails?startTime="+startTime
83
	        +"&endTime="+endTime, "GET", function(response){
83
	        +"&endTime="+endTime, function(response){
84
		$('#' + domId).html(response);
84
		$('#' + domId).html(response);
85
	});
85
	});
86
}
86
}
87
 
87