Subversion Repositories SmartDukaan

Rev

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

Rev 24942 Rev 24992
Line 36... Line 36...
36
	
36
	
37
	$(".fetchTransactions").live('click', function() {
37
	$(".fetchTransactions").live('click', function() {
38
		var type = $('#reference-type option:selected').val();
38
		var type = $('#reference-type option:selected').val();
39
		doGetAjaxRequestHandler(context + "/getWalletHistoryByPartner?referenceType="+type+"&fofoId=" + currentFofoId, function(response) {
39
		doGetAjaxRequestHandler(context + "/getWalletHistoryByPartner?referenceType="+type+"&fofoId=" + currentFofoId, function(response) {
40
			$('.wallet-history-container').html(response);
40
			$('.wallet-history-container').html(response);
-
 
41
			$("#wallet-form")[0].reset();
41
		});
42
		});
42
	});
43
	});
43
 
44
 
44
	$(".transactionSubmit").live(
45
	$(".transactionSubmit").live(
45
			'click',
46
			'click',
Line 92... Line 93...
92
							+ currentFofoId, function(response) {
93
							+ currentFofoId, function(response) {
93
						if (response != 0) {
94
						if (response != 0) {
94
							alert("successfully submit");
95
							alert("successfully submit");
95
							console.log(response)
96
							console.log(response)
96
							$("#reference_id").val(response);
97
							$("#reference_id").val(response);
97
							$("button.referenceSearch").click();
98
						//	$("button.referenceSearch").click();
-
 
99
							$("button.fetchTransactions").click();
98
						}
100
						}
99
					});
101
					});
100
				}
102
				}
101
			});
103
			});
102
 
104