| Line 1... |
Line 1... |
| 1 |
$(function() {
|
1 |
$(function() {
|
| 2 |
|
2 |
|
| 3 |
$(".create-mobile-recharge-commission").live('click', function() {
|
3 |
$(document).on('click', ".create-mobile-recharge-commission", function() {
|
| 4 |
console.log("Create Mobile Recharge Commission Button Clicked...");
|
4 |
console.log("Create Mobile Recharge Commission Button Clicked...");
|
| 5 |
loadCreateRechargeCommission("main-content", "MOBILE");
|
5 |
loadCreateRechargeCommission("main-content", "MOBILE");
|
| 6 |
});
|
6 |
});
|
| 7 |
|
7 |
|
| 8 |
$(".create-dth-recharge-commission").live('click', function() {
|
8 |
$(document).on('click', ".create-dth-recharge-commission", function() {
|
| 9 |
console.log("Create Dth Recharge Commission Button Clicked...");
|
9 |
console.log("Create Dth Recharge Commission Button Clicked...");
|
| 10 |
loadCreateRechargeCommission("main-content", "DTH");
|
10 |
loadCreateRechargeCommission("main-content", "DTH");
|
| 11 |
});
|
11 |
});
|
| 12 |
|
12 |
|
| 13 |
$(".create-mobile-recharge").live('click', function() {
|
13 |
$(document).on('click', ".create-mobile-recharge", function() {
|
| 14 |
console.log("Create Mobile Recharge Button Clicked...");
|
14 |
console.log("Create Mobile Recharge Button Clicked...");
|
| 15 |
loadCreateRecharge("main-content", "MOBILE");
|
15 |
loadCreateRecharge("main-content", "MOBILE");
|
| 16 |
});
|
16 |
});
|
| 17 |
|
17 |
|
| 18 |
$(".create-dth-recharge").live('click', function() {
|
18 |
$(document).on('click', ".create-dth-recharge", function() {
|
| 19 |
console.log("Create Dth Recharge Button Clicked...");
|
19 |
console.log("Create Dth Recharge Button Clicked...");
|
| 20 |
loadCreateRecharge("main-content", "DTH");
|
20 |
loadCreateRecharge("main-content", "DTH");
|
| 21 |
});
|
21 |
});
|
| 22 |
|
22 |
|
| 23 |
$(".mobile-recharges").live('click', function() {
|
23 |
$(document).on('click', ".mobile-recharges", function() {
|
| 24 |
console.log("Mobile Recharges Button Clicked...");
|
24 |
console.log("Mobile Recharges Button Clicked...");
|
| 25 |
loadRecharges("main-content", "MOBILE");
|
25 |
loadRecharges("main-content", "MOBILE");
|
| 26 |
});
|
26 |
});
|
| 27 |
|
27 |
|
| 28 |
$("#mobile-recharges-paginated .next").live('click', function() {
|
28 |
$(document).on('click', "#mobile-recharges-paginated .next", function() {
|
| 29 |
var params = {};
|
29 |
var params = {};
|
| 30 |
params['rechargeType'] = 'MOBILE';
|
30 |
params['rechargeType'] = 'MOBILE';
|
| 31 |
loadPaginatedNextItems('/getPaginatedRecharges', params, 'mobile-recharges-paginated', 'mobile-recharge-table', 'mobile-recharges-container');
|
31 |
loadPaginatedNextItems('/getPaginatedRecharges', params, 'mobile-recharges-paginated', 'mobile-recharge-table', 'mobile-recharges-container');
|
| 32 |
$(this).blur();
|
32 |
$(this).blur();
|
| 33 |
});
|
33 |
});
|
| 34 |
|
34 |
|
| 35 |
$("#mobile-recharges-paginated .previous").live('click', function() {
|
35 |
$(document).on('click', "#mobile-recharges-paginated .previous", function() {
|
| 36 |
var params = {};
|
36 |
var params = {};
|
| 37 |
params['rechargeType'] = 'MOBILE';
|
37 |
params['rechargeType'] = 'MOBILE';
|
| 38 |
loadPaginatedPreviousItems('/getPaginatedRecharges', params, 'mobile-recharges-paginated', 'mobile-recharge-table', 'mobile-recharges-container');
|
38 |
loadPaginatedPreviousItems('/getPaginatedRecharges', params, 'mobile-recharges-paginated', 'mobile-recharge-table', 'mobile-recharges-container');
|
| 39 |
$(this).blur();
|
39 |
$(this).blur();
|
| 40 |
});
|
40 |
});
|
| 41 |
|
41 |
|
| 42 |
$(".dth-recharges").live('click', function() {
|
42 |
$(document).on('click', ".dth-recharges", function() {
|
| 43 |
console.log("DTH Recharges Button Clicked...");
|
43 |
console.log("DTH Recharges Button Clicked...");
|
| 44 |
loadRecharges("main-content", "DTH");
|
44 |
loadRecharges("main-content", "DTH");
|
| 45 |
});
|
45 |
});
|
| 46 |
|
46 |
|
| 47 |
$("#dth-recharges-paginated .next").live('click', function() {
|
47 |
$(document).on('click', "#dth-recharges-paginated .next", function() {
|
| 48 |
var params = {};
|
48 |
var params = {};
|
| 49 |
params['rechargeType'] = 'DTH';
|
49 |
params['rechargeType'] = 'DTH';
|
| 50 |
loadPaginatedNextItems('/getPaginatedRecharges', params, 'dth-recharges-paginated', 'dth-recharge-table', 'dth-recharges-container');
|
50 |
loadPaginatedNextItems('/getPaginatedRecharges', params, 'dth-recharges-paginated', 'dth-recharge-table', 'dth-recharges-container');
|
| 51 |
$(this).blur();
|
51 |
$(this).blur();
|
| 52 |
});
|
52 |
});
|
| 53 |
|
53 |
|
| 54 |
$("#dth-recharges-paginated .previous").live('click', function() {
|
54 |
$(document).on('click', "#dth-recharges-paginated .previous", function() {
|
| 55 |
var params = {};
|
55 |
var params = {};
|
| 56 |
params['rechargeType'] = 'DTH';
|
56 |
params['rechargeType'] = 'DTH';
|
| 57 |
loadPaginatedPreviousItems('/getPaginatedRecharges', params, 'dth-recharges-paginated', 'dth-recharge-table', 'dth-recharges-container');
|
57 |
loadPaginatedPreviousItems('/getPaginatedRecharges', params, 'dth-recharges-paginated', 'dth-recharge-table', 'dth-recharges-container');
|
| 58 |
$(this).blur();
|
58 |
$(this).blur();
|
| 59 |
});
|
59 |
});
|
| 60 |
|
60 |
|
| 61 |
$(".mobile-recharge-check-status").live('click',function(){
|
61 |
$(document).on('click', ".mobile-recharge-check-status",function(){
|
| 62 |
console.log("mobile-recharge-check-status clicked");
|
62 |
console.log("mobile-recharge-check-status clicked");
|
| 63 |
var requestId = $(this).attr('data');
|
63 |
var requestId = $(this).attr('data');
|
| 64 |
console.log("request id : "+requestId);
|
64 |
console.log("request id : "+requestId);
|
| 65 |
var start = $( "#mobile-recharges-paginated .start" ).text();
|
65 |
var start = $( "#mobile-recharges-paginated .start" ).text();
|
| 66 |
var offset = start - 1;
|
66 |
var offset = start - 1;
|
| 67 |
rechargeCheckStatus("mobile-recharge-table", requestId, "MOBILE", offset);
|
67 |
rechargeCheckStatus("mobile-recharge-table", requestId, "MOBILE", offset);
|
| 68 |
});
|
68 |
});
|
| 69 |
|
69 |
|
| 70 |
$(".dth-recharge-check-status").live('click',function(){
|
70 |
$(document).on('click', ".dth-recharge-check-status",function(){
|
| 71 |
console.log("dth-recharge-check-status clicked");
|
71 |
console.log("dth-recharge-check-status clicked");
|
| 72 |
var requestId = $(this).attr('data');
|
72 |
var requestId = $(this).attr('data');
|
| 73 |
console.log("request id : "+requestId);
|
73 |
console.log("request id : "+requestId);
|
| 74 |
var start = $( "#dth-recharges-paginated .start" ).text();
|
74 |
var start = $( "#dth-recharges-paginated .start" ).text();
|
| 75 |
var offset = start - 1;
|
75 |
var offset = start - 1;
|
| 76 |
rechargeCheckStatus("dth-recharge-table", requestId, "DTH", offset);
|
76 |
rechargeCheckStatus("dth-recharge-table", requestId, "DTH", offset);
|
| 77 |
});
|
77 |
});
|
| 78 |
|
78 |
|
| 79 |
$("#rechargeOperatorType").live('change',function() {
|
79 |
$(document).on('change', "#rechargeOperatorType",function() {
|
| 80 |
console.log("Operator Type Clicked...");
|
80 |
console.log("Operator Type Clicked...");
|
| 81 |
loadRechargeOperatorsByOperatorType("rechargeOperator", $(this).val());
|
81 |
loadRechargeOperatorsByOperatorType("rechargeOperator", $(this).val());
|
| 82 |
});
|
82 |
});
|
| 83 |
|
83 |
|
| 84 |
$("#rechargeCommissionOperatorType").live('change',function() {
|
84 |
$(document).on('change', "#rechargeCommissionOperatorType",function() {
|
| 85 |
console.log("Operator Type Clicked...");
|
85 |
console.log("Operator Type Clicked...");
|
| 86 |
loadRechargeCommissionOperatorsByOperatorType("rechargeCommissionOperator", $(this).val());
|
86 |
loadRechargeCommissionOperatorsByOperatorType("rechargeCommissionOperator", $(this).val());
|
| 87 |
});
|
87 |
});
|
| 88 |
|
88 |
|
| 89 |
$(".recharge-commissions").live('click', function() {
|
89 |
$(document).on('click', ".recharge-commissions", function() {
|
| 90 |
console.log("Recharge Commissions Button Clicked...");
|
90 |
console.log("Recharge Commissions Button Clicked...");
|
| 91 |
loadRechargeCommissions("main-content", "MOBILE");
|
91 |
loadRechargeCommissions("main-content", "MOBILE");
|
| 92 |
});
|
92 |
});
|
| 93 |
|
93 |
|
| 94 |
$("#recharge-commissions-paginated .next").live('click', function() {
|
94 |
$(document).on('click', "#recharge-commissions-paginated .next", function() {
|
| 95 |
loadPaginatedNextItems('/getPaginatedRechargeCommissions', null, 'recharge-commissions-paginated', 'recharge-commissions-table', 'recharge-commission-details-container');
|
95 |
loadPaginatedNextItems('/getPaginatedRechargeCommissions', null, 'recharge-commissions-paginated', 'recharge-commissions-table', 'recharge-commission-details-container');
|
| 96 |
$(this).blur();
|
96 |
$(this).blur();
|
| 97 |
});
|
97 |
});
|
| 98 |
|
98 |
|
| 99 |
$("#recharge-commissions-paginated .previous").live('click', function() {
|
99 |
$(document).on('click', "#recharge-commissions-paginated .previous", function() {
|
| 100 |
loadPaginatedPreviousItems('/getPaginatedRechargeCommissions', null, 'recharge-commissions-paginated', 'recharge-commissions-table', 'recharge-commission-details-container');
|
100 |
loadPaginatedPreviousItems('/getPaginatedRechargeCommissions', null, 'recharge-commissions-paginated', 'recharge-commissions-table', 'recharge-commission-details-container');
|
| 101 |
$(this).blur();
|
101 |
$(this).blur();
|
| 102 |
});
|
102 |
});
|
| 103 |
|
103 |
|
| 104 |
$("#recharge-provider-credit-wallet-histories-paginated .next").live('click', function() {
|
104 |
$(document).on('click', "#recharge-provider-credit-wallet-histories-paginated .next", function() {
|
| 105 |
loadPaginatedNextItems('/getPaginatedRechargeProviderWalletAddMoneys', null, 'recharge-provider-credit-wallet-histories-paginated', 'recharge-provider-credit-wallet-histories-table', null);
|
105 |
loadPaginatedNextItems('/getPaginatedRechargeProviderWalletAddMoneys', null, 'recharge-provider-credit-wallet-histories-paginated', 'recharge-provider-credit-wallet-histories-table', null);
|
| 106 |
$(this).blur();
|
106 |
$(this).blur();
|
| 107 |
});
|
107 |
});
|
| 108 |
|
108 |
|
| 109 |
$("#recharge-provider-credit-wallet-histories-paginated .previous").live('click', function() {
|
109 |
$(document).on('click', "#recharge-provider-credit-wallet-histories-paginated .previous", function() {
|
| 110 |
loadPaginatedPreviousItems('/getPaginatedRechargeProviderWalletAddMoneys', null, 'recharge-provider-credit-wallet-histories-paginated', 'recharge-provider-credit-wallet-histories-table', null);
|
110 |
loadPaginatedPreviousItems('/getPaginatedRechargeProviderWalletAddMoneys', null, 'recharge-provider-credit-wallet-histories-paginated', 'recharge-provider-credit-wallet-histories-table', null);
|
| 111 |
$(this).blur();
|
111 |
$(this).blur();
|
| 112 |
});
|
112 |
});
|
| 113 |
|
113 |
|
| 114 |
$(".recharge-commission-details").live('click',function(){
|
114 |
$(document).on('click', ".recharge-commission-details",function(){
|
| 115 |
var operatorIdProviderIdString = $(this).attr('data').split(',');
|
115 |
var operatorIdProviderIdString = $(this).attr('data').split(',');
|
| 116 |
var operatorId = operatorIdProviderIdString[0];
|
116 |
var operatorId = operatorIdProviderIdString[0];
|
| 117 |
var providerId = operatorIdProviderIdString[1];
|
117 |
var providerId = operatorIdProviderIdString[1];
|
| 118 |
console.log("operatorId = "+operatorId);
|
118 |
console.log("operatorId = "+operatorId);
|
| 119 |
console.log("providerId = "+providerId);
|
119 |
console.log("providerId = "+providerId);
|
| 120 |
loadRechargeCommissionDetails("recharge-commission-details-container", operatorId, providerId);
|
120 |
loadRechargeCommissionDetails("recharge-commission-details-container", operatorId, providerId);
|
| 121 |
});
|
121 |
});
|
| 122 |
|
122 |
|
| 123 |
$(".recharge-commission-update-details").live('click',function(){
|
123 |
$(document).on('click', ".recharge-commission-update-details",function(){
|
| 124 |
var operatorIdProviderIdString = $(this).attr('data').split(',');
|
124 |
var operatorIdProviderIdString = $(this).attr('data').split(',');
|
| 125 |
var operatorId = operatorIdProviderIdString[0];
|
125 |
var operatorId = operatorIdProviderIdString[0];
|
| 126 |
var providerId = operatorIdProviderIdString[1];
|
126 |
var providerId = operatorIdProviderIdString[1];
|
| 127 |
console.log("operatorId = "+operatorId);
|
127 |
console.log("operatorId = "+operatorId);
|
| 128 |
console.log("providerId = "+providerId);
|
128 |
console.log("providerId = "+providerId);
|
| Line 136... |
Line 136... |
| 136 |
if(confirm("Are you sure you want to update Recharge Commission details!") == true){
|
136 |
if(confirm("Are you sure you want to update Recharge Commission details!") == true){
|
| 137 |
updateRechargeCommissionDetails(operatorId, providerId, amountType, amount, offset, "recharge-commissions-table");
|
137 |
updateRechargeCommissionDetails(operatorId, providerId, amountType, amount, offset, "recharge-commissions-table");
|
| 138 |
}
|
138 |
}
|
| 139 |
});
|
139 |
});
|
| 140 |
|
140 |
|
| 141 |
$(".recharge-provider-balance").live('click',function(){
|
141 |
$(document).on('click', ".recharge-provider-balance",function(){
|
| 142 |
console.log("Recharge Provider balance button clicked...");
|
142 |
console.log("Recharge Provider balance button clicked...");
|
| 143 |
loadRechargeProviderBalance("main-content");
|
143 |
loadRechargeProviderBalance("main-content");
|
| 144 |
});
|
144 |
});
|
| 145 |
|
145 |
|
| 146 |
$(".recharge-provider-wallet-add-money").live('click',function(){
|
146 |
$(document).on('click', ".recharge-provider-wallet-add-money",function(){
|
| 147 |
console.log("Recharge Provider wallet add money button clicked...");
|
147 |
console.log("Recharge Provider wallet add money button clicked...");
|
| 148 |
loadRechargeProviderWalletAddMoney("main-content");
|
148 |
loadRechargeProviderWalletAddMoney("main-content");
|
| 149 |
});
|
149 |
});
|
| 150 |
|
150 |
|
| 151 |
$(".recharge-provider-wallet-add-moneys").live('click',function(){
|
151 |
$(document).on('click', ".recharge-provider-wallet-add-moneys",function(){
|
| 152 |
console.log("Recharge Provider wallet add moneys button clicked...");
|
152 |
console.log("Recharge Provider wallet add moneys button clicked...");
|
| 153 |
loadRechargeProviderWalletAddMoneys("main-content");
|
153 |
loadRechargeProviderWalletAddMoneys("main-content");
|
| 154 |
});
|
154 |
});
|
| 155 |
|
155 |
|
| 156 |
$(".daily-recharges").live('click',function(){
|
156 |
$(document).on('click', ".daily-recharges",function(){
|
| 157 |
console.log("Daily Recharges button clicked...");
|
157 |
console.log("Daily Recharges button clicked...");
|
| 158 |
loadDailyRecharges("main-content");
|
158 |
loadDailyRecharges("main-content");
|
| 159 |
});
|
159 |
});
|
| 160 |
|
160 |
|
| 161 |
$("#daily-recharges-paginated .next").live('click', function() {
|
161 |
$(document).on('click', "#daily-recharges-paginated .next", function() {
|
| 162 |
loadPaginatedNextItems('/getPaginatedDailyRecharges', null, 'daily-recharges-paginated', 'daily-recharges-table', null);
|
162 |
loadPaginatedNextItems('/getPaginatedDailyRecharges', null, 'daily-recharges-paginated', 'daily-recharges-table', null);
|
| 163 |
$(this).blur();
|
163 |
$(this).blur();
|
| 164 |
});
|
164 |
});
|
| 165 |
|
165 |
|
| 166 |
$("#daily-recharges-paginated .previous").live('click', function() {
|
166 |
$(document).on('click', "#daily-recharges-paginated .previous", function() {
|
| 167 |
loadPaginatedPreviousItems('/getPaginatedDailyRecharges', null, 'daily-recharges-paginated', 'daily-recharges-table', null);
|
167 |
loadPaginatedPreviousItems('/getPaginatedDailyRecharges', null, 'daily-recharges-paginated', 'daily-recharges-table', null);
|
| 168 |
$(this).blur();
|
168 |
$(this).blur();
|
| 169 |
});
|
169 |
});
|
| 170 |
|
170 |
|
| 171 |
});
|
171 |
});
|