Subversion Repositories SmartDukaan

Rev

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

Rev 24892 Rev 24896
Line 30... Line 30...
30
					currentFofoId=response.partnerId;
30
					currentFofoId=response.partnerId;
31
				});
31
				});
32
 
32
 
33
			});
33
			});
34
	
34
	
35
	$(".fetchTransactions").live(
35
	$(".fetchTransactions").live('click', function() {
36
			'click',
-
 
37
			function() {
-
 
38
					var type = $('#reference-type option:selected').val();
36
		var type = $('#reference-type option:selected').val();
39
					doGetAjaxRequestHandler(context + "/getWalletHistoryByPartner?reference="
37
		doGetAjaxRequestHandler(context + "/getWalletHistoryByPartner?referenceType="+type+"&fofoId=" + currentFofoId, function(response) {
40
						+ reference + "&fofoId=" + currentFofoId, function(
-
 
41
								response) {
-
 
42
					response=JSON.parse(response);
38
			$('.wallet-history-container').html(response);
43
				});
39
		});
44
				
-
 
45
			});
40
	});
46
 
41
 
47
	$(".transactionSubmit").live(
42
	$(".transactionSubmit").live(
48
			'click',
43
			'click',
49
			function() {
44
			function() {
50
				var reference = $('#reference_id').val();
45
				var reference = $('#reference_id').val();
Line 84... Line 79...
84
							+ transactiontype + "&amount=" + amount
79
							+ transactiontype + "&amount=" + amount
85
							+ "&description=" + description + "&retailerId="
80
							+ "&description=" + description + "&retailerId="
86
							+ currentFofoId, function(response) {
81
							+ currentFofoId, function(response) {
87
						if (response == 'true') {
82
						if (response == 'true') {
88
							alert("successfully submit");
83
							alert("successfully submit");
89
 
-
 
90
							loadManualPayment("main-content");
84
							$("button.referenceSearch").click();
91
						}
85
						}
92
					});
86
					});
93
				}
87
				}
94
			});
88
			});
95
 
89