| 2674 |
vikas |
1 |
$(function() {
|
| 3228 |
mandeep.dh |
2 |
$("a.show-order-details").live('click', function() {
|
|
|
3 |
var orderId = $(this).attr('orderId');
|
| 3499 |
mandeep.dh |
4 |
loadOrderInfo("bottom-infopane", orderId);
|
| 3228 |
mandeep.dh |
5 |
});
|
| 3206 |
mandeep.dh |
6 |
|
| 3228 |
mandeep.dh |
7 |
$("a.show-user-details").live('click', function() {
|
|
|
8 |
var userId = $(this).attr('userId');
|
|
|
9 |
loadUserPane("infopane", userId);
|
|
|
10 |
});
|
| 5168 |
amar.kumar |
11 |
|
|
|
12 |
$("a.agent-ticket-count").live('click', function() {
|
|
|
13 |
loadTickets('infopane', "/crm/tickets!searchTickets?agentIds=" + $(this).attr('agentId') +"&status=OPEN");
|
|
|
14 |
});
|
| 6111 |
anupam.sin |
15 |
|
|
|
16 |
$("a.show-recharge-orders").live('click', function() {
|
|
|
17 |
var userId = $(this).attr('userId');
|
|
|
18 |
loadRechargeOrderPane("infopane", userId, 0);
|
|
|
19 |
});
|
|
|
20 |
|
|
|
21 |
$("a.show-recharge-details").live('click', function() {
|
|
|
22 |
var orderId = $(this).attr('orderId');
|
|
|
23 |
loadRechargeOrderInfo("bottom-infopane", orderId);
|
|
|
24 |
});
|
| 3090 |
mandeep.dh |
25 |
|
| 3228 |
mandeep.dh |
26 |
$("a.show-orders").live('click', function() {
|
|
|
27 |
var userId = $(this).attr('userId');
|
|
|
28 |
loadOrderPane("infopane", userId, 0);
|
|
|
29 |
});
|
| 3090 |
mandeep.dh |
30 |
|
| 3228 |
mandeep.dh |
31 |
$("a.show-cart").live('click', function() {
|
|
|
32 |
var userId = $(this).attr('userId');
|
|
|
33 |
var cartId = $(this).attr('cartId');
|
|
|
34 |
loadCartPane("infopane", userId, cartId);
|
|
|
35 |
});
|
| 3090 |
mandeep.dh |
36 |
|
| 3228 |
mandeep.dh |
37 |
$("a.show-line-details").live('click', function() {
|
|
|
38 |
var userId = $(this).attr('userId');
|
|
|
39 |
var itemId = $(this).attr('itemId');
|
|
|
40 |
loadLineInfo("bottom-infopane", userId, itemId);
|
|
|
41 |
});
|
| 3090 |
mandeep.dh |
42 |
|
| 3228 |
mandeep.dh |
43 |
$("a.show-tickets").live('click', function() {
|
|
|
44 |
var userId = $(this).attr('userId');
|
| 3405 |
mandeep.dh |
45 |
loadTickets('infopane', "/crm/tickets!searchTickets?userId=" + userId);
|
| 3228 |
mandeep.dh |
46 |
});
|
| 3090 |
mandeep.dh |
47 |
|
| 3228 |
mandeep.dh |
48 |
$("a.show-activity").live('click', function() {
|
|
|
49 |
var userId = $(this).attr('userId');
|
| 3405 |
mandeep.dh |
50 |
listActivities('infopane', "userId=" + userId);
|
| 3228 |
mandeep.dh |
51 |
});
|
| 3090 |
mandeep.dh |
52 |
|
| 3228 |
mandeep.dh |
53 |
$("a.show-ticket-details").live('click', function() {
|
|
|
54 |
var ticketId = $(this).attr('ticketId');
|
| 3405 |
mandeep.dh |
55 |
|
| 3228 |
mandeep.dh |
56 |
// will be set when ticket Id link is clicked from activity page
|
|
|
57 |
var activityId = $(this).attr('activityId');
|
|
|
58 |
loadTicketInfo("bottom-infopane", ticketId, null, activityId);
|
|
|
59 |
});
|
| 4241 |
anupam.sin |
60 |
|
|
|
61 |
$("a.show-activity-description").live('click', function() {
|
|
|
62 |
loadActivityDescription("activity-description-pane", this);
|
|
|
63 |
});
|
| 3090 |
mandeep.dh |
64 |
|
| 3228 |
mandeep.dh |
65 |
$("a.show-activity-details").live('click', function() {
|
|
|
66 |
var activityId = $(this).attr('activityId');
|
| 3422 |
mandeep.dh |
67 |
loadActivityInfo("bottom-infopane", activityId);
|
| 3228 |
mandeep.dh |
68 |
});
|
| 4241 |
anupam.sin |
69 |
|
| 3228 |
mandeep.dh |
70 |
$("a.create-ticket").live('click', function() {
|
| 3405 |
mandeep.dh |
71 |
var userId = $(this).attr('userId');
|
|
|
72 |
|
|
|
73 |
var params = null;
|
|
|
74 |
if (userId != null && userId != "") {
|
|
|
75 |
params = "userId=" + userId;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
loadTicketCreationForm("infopane", params);
|
| 3228 |
mandeep.dh |
79 |
});
|
| 3206 |
mandeep.dh |
80 |
|
| 3228 |
mandeep.dh |
81 |
$("a.create-activity").live('click', function() {
|
|
|
82 |
var userId = $(this).attr('userId');
|
| 3090 |
mandeep.dh |
83 |
|
| 3405 |
mandeep.dh |
84 |
var params = null;
|
|
|
85 |
if (userId != null && userId != "") {
|
|
|
86 |
params = "userId=" + userId;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
loadActivityCreationForm("infopane", params);
|
| 3339 |
mandeep.dh |
90 |
});
|
|
|
91 |
|
| 3228 |
mandeep.dh |
92 |
$('#update-ticket-form').live('submit', function() {
|
|
|
93 |
var ticketId = $(this).attr('ticketId');
|
|
|
94 |
updateTicket("infopane", ticketId, $(this).serialize());
|
|
|
95 |
return false;
|
|
|
96 |
});
|
| 3206 |
mandeep.dh |
97 |
|
| 3228 |
mandeep.dh |
98 |
$('form#mail-form').live(
|
|
|
99 |
'submit',
|
|
|
100 |
function() {
|
| 4163 |
mandeep.dh |
101 |
var body = $('#mail-body').val().trim();
|
|
|
102 |
if (body == null || body == '') {
|
|
|
103 |
alert('Please specify body of the mail');
|
|
|
104 |
}
|
|
|
105 |
else {
|
| 4164 |
mandeep.dh |
106 |
var ticketId = $('#update-ticket-form').attr('ticketId');
|
| 4163 |
mandeep.dh |
107 |
updateTicket("infopane", ticketId, $(this).serialize() + '&'
|
|
|
108 |
+ $('#update-ticket-form').serialize());
|
|
|
109 |
$.colorbox.close();
|
|
|
110 |
}
|
|
|
111 |
|
| 3228 |
mandeep.dh |
112 |
return false;
|
|
|
113 |
});
|
| 3106 |
mandeep.dh |
114 |
|
| 4020 |
mandeep.dh |
115 |
$('form#escalation-form').live(
|
|
|
116 |
'submit',
|
|
|
117 |
function() {
|
|
|
118 |
var ticketId = $('#update-ticket-form').attr('ticketId');
|
|
|
119 |
updateTicket("infopane", ticketId, $(this).serialize() + '&'
|
|
|
120 |
+ $('#update-ticket-form').serialize());
|
|
|
121 |
$.colorbox.close();
|
|
|
122 |
return false;
|
|
|
123 |
});
|
| 4241 |
anupam.sin |
124 |
|
| 4705 |
anupam.sin |
125 |
$('form#cancel-form').live('submit',
|
|
|
126 |
function() {
|
|
|
127 |
if( $('#cancelReasonBox').attr('style') && !($('#cancelReasonBox').attr('style').indexOf('none'))) {
|
|
|
128 |
var body = $('#cancel-body').val().trim();
|
|
|
129 |
if (body == null || body == '') {
|
|
|
130 |
alert('Please specify description');
|
|
|
131 |
return false;
|
|
|
132 |
}
|
|
|
133 |
}
|
|
|
134 |
var ticketId = $('.display-cancel-order-popup').attr('ticketId');
|
|
|
135 |
var orderId = $('.display-cancel-order-popup').attr('orderId');
|
|
|
136 |
var orderStatus = $('.display-cancel-order-popup').attr('orderStatus');
|
|
|
137 |
cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
|
|
|
138 |
$.colorbox.close();
|
|
|
139 |
return false;
|
|
|
140 |
});
|
| 4020 |
mandeep.dh |
141 |
|
| 7372 |
kshitij.so |
142 |
$('form#cancel-form-limited').live('submit',
|
|
|
143 |
function() {
|
|
|
144 |
if( $('#cancelReasonBox').attr('style') && !($('#cancelReasonBox').attr('style').indexOf('none'))) {
|
|
|
145 |
var body = $('#cancel-body').val().trim();
|
|
|
146 |
if (body == null || body == '') {
|
|
|
147 |
alert('Please specify description');
|
|
|
148 |
return false;
|
|
|
149 |
}
|
|
|
150 |
}
|
|
|
151 |
var ticketId = $('.display-limited-cancel-order-popup').attr('ticketId');
|
|
|
152 |
var orderId = $('.display-limited-cancel-order-popup').attr('orderId');
|
|
|
153 |
var orderStatus = $('.display-limited-cancel-order-popup').attr('orderStatus');
|
|
|
154 |
cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
|
|
|
155 |
$.colorbox.close();
|
|
|
156 |
return false;
|
|
|
157 |
});
|
|
|
158 |
|
|
|
159 |
|
| 3228 |
mandeep.dh |
160 |
$('form#activity-mail-form').live(
|
|
|
161 |
'submit',
|
|
|
162 |
function() {
|
|
|
163 |
createActivity("infopane", $(this).serialize() + '&' + $("#create-activity-form").serialize());
|
|
|
164 |
$.colorbox.close();
|
|
|
165 |
return false;
|
|
|
166 |
});
|
| 3106 |
mandeep.dh |
167 |
|
| 3405 |
mandeep.dh |
168 |
$('#create-activity-form').live('submit', function() {
|
|
|
169 |
createActivity("infopane", $(this).serialize());
|
| 3339 |
mandeep.dh |
170 |
return false;
|
|
|
171 |
});
|
|
|
172 |
|
| 3228 |
mandeep.dh |
173 |
$('#create-ticket-form').live('submit', function() {
|
|
|
174 |
createTicket("infopane", $(this).serialize());
|
|
|
175 |
return false;
|
|
|
176 |
});
|
| 3106 |
mandeep.dh |
177 |
|
| 3228 |
mandeep.dh |
178 |
$(".home-page").click(function() {
|
|
|
179 |
goToHomePage();
|
|
|
180 |
});
|
| 3106 |
mandeep.dh |
181 |
|
| 3228 |
mandeep.dh |
182 |
$(".my-open-tickets").live('click', function() {
|
| 4008 |
mandeep.dh |
183 |
loadTickets('infopane', "/crm/tickets!searchTickets?agentIds=" + $(this).attr('agentIds') +"&status=OPEN");
|
| 3228 |
mandeep.dh |
184 |
});
|
| 3151 |
mandeep.dh |
185 |
|
| 3228 |
mandeep.dh |
186 |
$(".unassigned-tickets").live('click', function() {
|
| 3234 |
mandeep.dh |
187 |
loadTickets('infopane', "/crm/tickets!getUnassignedTickets");
|
| 3151 |
mandeep.dh |
188 |
});
|
|
|
189 |
|
| 4065 |
mandeep.dh |
190 |
$("#spinner-div").ajaxSend(function(evt, request, settings) {
|
|
|
191 |
if (settings.url != '/crm') {
|
|
|
192 |
$(this).show();
|
|
|
193 |
}
|
| 3228 |
mandeep.dh |
194 |
});
|
|
|
195 |
|
| 4065 |
mandeep.dh |
196 |
$("#spinner-div").ajaxComplete(function(evt, request, settings) {
|
|
|
197 |
if (settings.url != '/crm') {
|
|
|
198 |
$(this).hide();
|
|
|
199 |
}
|
| 3228 |
mandeep.dh |
200 |
});
|
|
|
201 |
|
|
|
202 |
$("select#activity-type").live('change', function() {
|
| 3422 |
mandeep.dh |
203 |
processActivityTypeChange($(this).val());
|
| 3228 |
mandeep.dh |
204 |
});
|
| 5225 |
amar.kumar |
205 |
|
|
|
206 |
$("select#common-activity-desc").live('change', function() {
|
|
|
207 |
changeActivityFormValidCriteria($(this).val());
|
|
|
208 |
});
|
| 3397 |
mandeep.dh |
209 |
|
| 3339 |
mandeep.dh |
210 |
$(".list-my-activity").live('click', function() {
|
|
|
211 |
listActivities('infopane', "");
|
|
|
212 |
});
|
|
|
213 |
|
|
|
214 |
$(".list-customer-activity").live('click', function() {
|
|
|
215 |
listActivities('infopane', "creatorId=1");
|
|
|
216 |
});
|
| 3390 |
mandeep.dh |
217 |
|
|
|
218 |
$("#mark-as-read").live('click', function() {
|
|
|
219 |
var activityId = $(this).attr('activityId');
|
|
|
220 |
markAsRead(activityId);
|
|
|
221 |
});
|
| 3397 |
mandeep.dh |
222 |
|
| 4490 |
anupam.sin |
223 |
$("#deny-doa").live('click', function() {
|
|
|
224 |
var ticketId = $(this).attr('ticketId');
|
|
|
225 |
var orderId = $(this).attr('orderId');
|
|
|
226 |
denyDOA(orderId, ticketId);
|
|
|
227 |
});
|
|
|
228 |
|
|
|
229 |
$("#authorize-doa").live('click', function() {
|
|
|
230 |
var ticketId = $(this).attr('ticketId');
|
|
|
231 |
var orderId = $(this).attr('orderId');
|
|
|
232 |
authorizeDOA(orderId, ticketId);
|
|
|
233 |
});
|
|
|
234 |
|
|
|
235 |
$("#deny-return").live('click', function() {
|
|
|
236 |
var ticketId = $(this).attr('ticketId');
|
|
|
237 |
var orderId = $(this).attr('orderId');
|
|
|
238 |
denyReturn(orderId, ticketId);
|
|
|
239 |
});
|
|
|
240 |
|
|
|
241 |
$("#authorize-return").live('click', function() {
|
|
|
242 |
var ticketId = $(this).attr('ticketId');
|
|
|
243 |
var orderId = $(this).attr('orderId');
|
|
|
244 |
authorizeReturn(orderId, ticketId);
|
|
|
245 |
});
|
|
|
246 |
|
| 4267 |
anupam.sin |
247 |
$("#block-payment").live('click', function() {
|
|
|
248 |
var transactionId = $(this).attr('transactionId');
|
|
|
249 |
var ticketId = $(this).attr('ticketId');
|
| 4438 |
anupam.sin |
250 |
var paymentId = $(this).attr('paymentId');
|
|
|
251 |
blockPayment(transactionId, ticketId, paymentId);
|
| 4267 |
anupam.sin |
252 |
});
|
|
|
253 |
|
|
|
254 |
$("#allow-payment").live('click', function() {
|
|
|
255 |
var transactionId = $(this).attr('transactionId');
|
|
|
256 |
var ticketId = $(this).attr('ticketId');
|
| 4438 |
anupam.sin |
257 |
var paymentId = $(this).attr('paymentId');
|
|
|
258 |
allowPayment(transactionId, ticketId, paymentId);
|
| 4267 |
anupam.sin |
259 |
});
|
|
|
260 |
|
| 3397 |
mandeep.dh |
261 |
$("form#search").live('submit', function() {
|
|
|
262 |
if ($('#searchEntity').val() == 'Tickets') {
|
|
|
263 |
loadTickets('infopane', "/crm/tickets!searchTickets?" + $(this).serialize());
|
|
|
264 |
}
|
|
|
265 |
else {
|
|
|
266 |
listActivities('infopane', $(this).serialize());
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
$.colorbox.close();
|
|
|
270 |
return false;
|
|
|
271 |
});
|
|
|
272 |
|
|
|
273 |
$(".advanced-search").live('click', function() {
|
|
|
274 |
loadAdvancedSearchBox();
|
|
|
275 |
return false;
|
|
|
276 |
});
|
|
|
277 |
|
|
|
278 |
$("select#searchEntity").live('change', function() {
|
|
|
279 |
var searchEntity = $(this).val();
|
|
|
280 |
processSearchEntityChange(searchEntity);
|
|
|
281 |
});
|
| 3499 |
mandeep.dh |
282 |
|
|
|
283 |
$('.pending-cod-verification-tickets').live('click', function() {
|
| 3546 |
mandeep.dh |
284 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=COD_VERIFICATION&status=OPEN");
|
|
|
285 |
return false;
|
| 3499 |
mandeep.dh |
286 |
});
|
| 3546 |
mandeep.dh |
287 |
|
| 3578 |
mandeep.dh |
288 |
$('.open-failed-payments-tickets').live('click', function() {
|
|
|
289 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=FAILED_PAYMENTS&status=OPEN");
|
|
|
290 |
return false;
|
|
|
291 |
});
|
| 4267 |
anupam.sin |
292 |
|
|
|
293 |
$('.open-flagged-payments-tickets').live('click', function() {
|
|
|
294 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=PAYMENT_FLAGGED&status=OPEN");
|
|
|
295 |
return false;
|
|
|
296 |
});
|
| 4490 |
anupam.sin |
297 |
|
|
|
298 |
$('.doa-request-tickets').live('click', function() {
|
|
|
299 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=DOA_RECEIVED&status=OPEN");
|
|
|
300 |
return false;
|
|
|
301 |
});
|
|
|
302 |
|
|
|
303 |
$('.return-request-tickets').live('click', function() {
|
|
|
304 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=RETURN_FORM&status=OPEN");
|
|
|
305 |
return false;
|
|
|
306 |
});
|
| 4751 |
anupam.sin |
307 |
|
| 7372 |
kshitij.so |
308 |
$('.low-inventory-tickets').live('click', function() {
|
|
|
309 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=LOW_INVENTORY_CANCELLED_ORDERS&status=OPEN");
|
|
|
310 |
return false;
|
|
|
311 |
});
|
|
|
312 |
|
| 4751 |
anupam.sin |
313 |
$('#order-cancellation-tickets').live('click', function() {
|
|
|
314 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=ORDER_CANCELLATION&status=OPEN");
|
|
|
315 |
return false;
|
|
|
316 |
});
|
| 3578 |
mandeep.dh |
317 |
|
| 4008 |
mandeep.dh |
318 |
$('.open-delayed-delivery-tickets').live('click', function() {
|
|
|
319 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=DELAYED_DELIVERY&status=OPEN");
|
|
|
320 |
return false;
|
|
|
321 |
});
|
| 5858 |
amar.kumar |
322 |
|
|
|
323 |
$('#store-pickup-tickets').live('click', function() {
|
|
|
324 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=STORE_PICKUP&status=OPEN");
|
|
|
325 |
return false;
|
|
|
326 |
});
|
| 4008 |
mandeep.dh |
327 |
|
| 3499 |
mandeep.dh |
328 |
$('.trust-level-increase').live('click', function() {
|
|
|
329 |
increaseTrustLevel('infopane', $('input#trust-level-increase').attr('userId'), $('input#trust-level-increase').val());
|
|
|
330 |
});
|
|
|
331 |
|
| 3546 |
mandeep.dh |
332 |
$('.update-order-status').live('click', function() {
|
|
|
333 |
updateOrderStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), $(this).attr('orderStatus'));
|
| 3499 |
mandeep.dh |
334 |
});
|
| 4241 |
anupam.sin |
335 |
|
| 3711 |
mandeep.dh |
336 |
|
|
|
337 |
$('.list-my-unread-activity').live('click', function() {
|
|
|
338 |
loadUnreadActivities('infopane');
|
|
|
339 |
});
|
| 4142 |
mandeep.dh |
340 |
|
|
|
341 |
$('form.change-address').live('submit', function() {
|
|
|
342 |
changeAddress($(this).serialize());
|
|
|
343 |
});
|
| 4681 |
amar.kumar |
344 |
|
| 7372 |
kshitij.so |
345 |
$('.display-limited-cancel-order-popup').live('click', function(){
|
|
|
346 |
displayLimitedCancelOrderPopUp();
|
|
|
347 |
});
|
|
|
348 |
|
|
|
349 |
$('.display-cancel-order-popup').live('click', function(){
|
| 4689 |
anupam.sin |
350 |
displayCancelOrderPopUp();
|
|
|
351 |
});
|
|
|
352 |
|
| 4681 |
amar.kumar |
353 |
$('input.cancelReason').live('change', function(){
|
|
|
354 |
showHidecancelReasonDiv($(this).attr('id'));
|
|
|
355 |
});
|
| 4793 |
amar.kumar |
356 |
|
|
|
357 |
$('a.manage-agents').live('click', function() {
|
|
|
358 |
loadAgentsInfo("infopane");
|
|
|
359 |
});
|
|
|
360 |
|
| 5909 |
amar.kumar |
361 |
$('a.open-tickets').live('click', function() {
|
|
|
362 |
loadAllOpenTickets("infopane");
|
|
|
363 |
});
|
|
|
364 |
|
|
|
365 |
$('a.open-ticket-count').live('click', function() {
|
|
|
366 |
loadTickets('infopane', "/crm/tickets!searchTickets?category=" + $(this).attr('category') + "&status=OPEN");
|
|
|
367 |
});
|
|
|
368 |
|
| 4793 |
amar.kumar |
369 |
$('a#create-agent').live('click', function() {
|
|
|
370 |
loadAgentCreationForm();
|
|
|
371 |
});
|
|
|
372 |
|
|
|
373 |
$('a#deactivate-agent').live('click', function() {
|
|
|
374 |
deactivateAgentPopup();
|
|
|
375 |
});
|
|
|
376 |
|
|
|
377 |
$('a#change-password').live('click', function() {
|
|
|
378 |
changeAgentPasswordPopup();
|
|
|
379 |
});
|
|
|
380 |
|
| 5168 |
amar.kumar |
381 |
$('a#change-role').live('click', function() {
|
|
|
382 |
changeAgentRolePopup();
|
|
|
383 |
});
|
|
|
384 |
|
| 4793 |
amar.kumar |
385 |
$('input#deactivate-agent').live('click', function() {
|
|
|
386 |
deactivateAgent($('#deactivate-agent-email').val(),$('#deactivate-agent-email').find(':selected')[0].id);
|
|
|
387 |
});
|
|
|
388 |
|
|
|
389 |
$('#create-agent-form').live('submit', function() {
|
|
|
390 |
if(validateAgentCreationForm()){
|
|
|
391 |
var managerId = $('#manager-email-id').find(':selected')[0].id;
|
|
|
392 |
createAgent($(this).serialize(), managerId);
|
|
|
393 |
}
|
|
|
394 |
});
|
|
|
395 |
|
| 5168 |
amar.kumar |
396 |
$('#change-agent-role-form').live('submit', function() {
|
|
|
397 |
if($('#changed-role')[0].value!=""||$('#changed-role')[0].value!=undefined){
|
|
|
398 |
changeAgentRole($(this).serialize());
|
|
|
399 |
} else {
|
|
|
400 |
alert("Please choose roles before proceeding");
|
|
|
401 |
}
|
|
|
402 |
});
|
|
|
403 |
|
| 4793 |
amar.kumar |
404 |
$('#change-agent-password').live('click', function() {
|
|
|
405 |
updateAgentPassword();
|
|
|
406 |
});
|
| 5791 |
anupam.sin |
407 |
|
|
|
408 |
$('.extend-expiry').live('click', function() {
|
|
|
409 |
var pickupExtension = $('#pickupExtension').val();
|
| 5917 |
anupam.sin |
410 |
extendExpiryDate('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), pickupExtension);
|
| 5791 |
anupam.sin |
411 |
});
|
| 6507 |
anupam.sin |
412 |
|
|
|
413 |
$('#refund-recharge-order').live('click', function() {
|
|
|
414 |
var orderId = $(this).attr('orderId');
|
|
|
415 |
refundRechargeOrder(orderId, "bottom-infopane");
|
|
|
416 |
});
|
| 6985 |
anupam.sin |
417 |
|
|
|
418 |
$('#changeShippingAddress').live('click', function() {
|
|
|
419 |
$('#changeShippingAddress').hide();
|
|
|
420 |
$('#shippingAddressFrm').slideDown(100);
|
|
|
421 |
});
|
|
|
422 |
|
|
|
423 |
$('#cancelAddressChange').live('click', function() {
|
|
|
424 |
$('#shippingAddressFrm').slideUp(100, function(){
|
|
|
425 |
$('#changeShippingAddress').show();
|
|
|
426 |
});
|
|
|
427 |
});
|
|
|
428 |
|
|
|
429 |
$('#submitNewAddress').live('click', function(){
|
|
|
430 |
var orderId = $(this).attr('orderId');
|
|
|
431 |
changeShippingAddress(orderId);
|
|
|
432 |
});
|
| 7372 |
kshitij.so |
433 |
|
|
|
434 |
$("select#cancellationInitiator").live('change', function(){
|
|
|
435 |
var selectVal = $('#cancellationInitiator :selected').val();
|
|
|
436 |
if (selectVal == "INTERNAL"){
|
|
|
437 |
$( "#orderCancellationButton" ).removeClass('display-cancel-order-popup');
|
|
|
438 |
$( "#orderCancellationButton" ).addClass('display-limited-cancel-order-popup');
|
|
|
439 |
return false;
|
|
|
440 |
}
|
|
|
441 |
else {
|
|
|
442 |
$( "#orderCancellationButton" ).removeClass('display-limited-cancel-order-popup');
|
|
|
443 |
$( "#orderCancellationButton" ).addClass('display-cancel-order-popup');
|
|
|
444 |
return false;
|
|
|
445 |
}
|
|
|
446 |
});
|
|
|
447 |
});
|