Subversion Repositories SmartDukaan

Rev

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

Rev 14905 Rev 19072
Line 25... Line 25...
25
 
25
 
26
    $("a.show-orders").live('click', function() {
26
    $("a.show-orders").live('click', function() {
27
        var userId = $(this).attr('userId');
27
        var userId = $(this).attr('userId');
28
        loadOrderPane("infopane", userId, 0);
28
        loadOrderPane("infopane", userId, 0);
29
    });
29
    });
-
 
30
    
-
 
31
    $("a.show-return-tickets").live('click', function(){
-
 
32
    	var userId = $(this).attr('userId');
-
 
33
        loadReturnTxnPane("infopane", userId, 0);
-
 
34
    });
30
 
35
 
31
    $("a.show-cart").live('click', function() {
36
    $("a.show-cart").live('click', function() {
32
        var userId = $(this).attr('userId');
37
        var userId = $(this).attr('userId');
33
        var cartId = $(this).attr('cartId');
38
        var cartId = $(this).attr('cartId');
34
        loadCartPane("infopane", userId, cartId);
39
        loadCartPane("infopane", userId, cartId);
Line 129... Line 134...
129
    	if (body == null || body == '') {
134
    	if (body == null || body == '') {
130
    		alert('Please specify description');
135
    		alert('Please specify description');
131
    		return false;
136
    		return false;
132
    	}
137
    	}
133
    }
138
    }
-
 
139
    	
-
 
140
    var canceltype = $("div#cancel-div").attr('cancelType');
134
    var ticketId = $('.display-cancel-order-popup').attr('ticketId');
141
    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');
142
    var orderStatus = $('.display-cancel-order-popup').attr('orderStatus');
-
 
143
    if(canceltype=='txn'){
-
 
144
    	var orderId = $('.display-cancel-order-popup').attr('orderId');
137
    cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
145
    	cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
-
 
146
    }
-
 
147
    else{
-
 
148
    	var transactionId = $('.display-cancel-order-popup').attr('transactionId');
-
 
149
    	cancelTxn("bottom-infopane", ticketId, transactionId, orderStatus, $(this).serialize());
-
 
150
    }
138
    $.colorbox.close();
151
    $.colorbox.close();
139
    return false;
152
    return false;
140
	});
153
	});
141
    
154
    
142
    $('#cancel-store-order-form').live('submit',
155
    $('#cancel-store-order-form').live('submit',
Line 200... Line 213...
200
 
213
 
201
    $("select#activity-type").live('change', function() {
214
    $("select#activity-type").live('change', function() {
202
        processActivityTypeChange($(this).val());
215
        processActivityTypeChange($(this).val());
203
    });
216
    });
204
    
217
    
-
 
218
    /*$("select#ticketCategory").live('change', function() {
-
 
219
        var categoryType = $(this).val();
-
 
220
        if(categoryType != "DOA_RECEIVED") {
-
 
221
    		$('input#orderQty').hide();
-
 
222
    		$('input#orderQty').removeClass('required digits');
-
 
223
    	}else if(categoryType != "RETURN_FORM"){
-
 
224
    		$('input#orderQty').hide();
-
 
225
    		$('input#orderQty').removeClass('required digits');
-
 
226
    	}else {
-
 
227
    		$('input#orderQty').show();
-
 
228
    		$('input#orderQty').addClass('required digits');
-
 
229
    	}
-
 
230
    });*/
-
 
231
    
205
    $("select#common-activity-desc").live('change', function() {
232
    $("select#common-activity-desc").live('change', function() {
206
        changeActivityFormValidCriteria($(this).val());
233
        changeActivityFormValidCriteria($(this).val());
207
    });
234
    });
208
 
235
 
209
    $(".list-my-activity").live('click', function() {
236
    $(".list-my-activity").live('click', function() {
Line 365... Line 392...
365
    
392
    
366
    $('.update-order-status').live('click', function() {
393
    $('.update-order-status').live('click', function() {
367
        updateOrderStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), $(this).attr('orderStatus'));
394
        updateOrderStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), $(this).attr('orderStatus'));
368
    });
395
    });
369
    
396
    
-
 
397
    $('.update-txn-status').live('click', function() {
-
 
398
        updateTxnStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('transactionId'), $(this).attr('orderStatus'));
-
 
399
    });
-
 
400
    
370
 
401
 
371
    $('.list-my-unread-activity').live('click', function() {
402
    $('.list-my-unread-activity').live('click', function() {
372
        loadUnreadActivities('infopane');
403
        loadUnreadActivities('infopane');
373
    });
404
    });
374
 
405
 
375
    $('form.change-address').live('submit', function() {
406
    $('form.change-address').live('submit', function() {
376
        changeAddress($(this).serialize());
407
        changeAddress($(this).serialize());
377
    });
408
    });
378
    
409
    
379
    $('.display-cancel-order-popup').live('click', function(){
410
    $('.display-cancel-order-popup').live('click', function(){
-
 
411
    	var orderId = $('.display-cancel-order-popup').attr('orderId');
-
 
412
    	if(orderId==undefined){
-
 
413
    		var transactionId = $('.display-cancel-order-popup').attr('transactionId');
380
        displayCancelOrderPopUp();
414
    		displayCancelOrderPopUp("txn");
-
 
415
    	}else{
-
 
416
    		displayCancelOrderPopUp("order");
-
 
417
    	}
381
    });
418
    });
382
    
419
    
383
    $('.display-cancel-store-order-popup').live('click', function(){
420
    $('.display-cancel-store-order-popup').live('click', function(){
384
        displayCancelStoreOrderPopUp();
421
        displayCancelStoreOrderPopUp();
385
    });
422
    });
Line 390... Line 427...
390
    
427
    
391
    $('a.manage-agents').live('click', function() {
428
    $('a.manage-agents').live('click', function() {
392
        loadAgentsInfo("infopane");
429
        loadAgentsInfo("infopane");
393
    });
430
    });
394
    
431
    
-
 
432
    /*$('a.process-returns').live('click', function() {
-
 
433
        loadReturnTxnsInfo("infopane");
-
 
434
    });*/
-
 
435
    
395
    $('a.open-tickets').live('click', function() {
436
    $('a.open-tickets').live('click', function() {
396
        loadAllOpenTickets("infopane");
437
        loadAllOpenTickets("infopane");
397
    });
438
    });
398
    
439
    
399
    $('a.open-ticket-count').live('click', function() {
440
    $('a.open-ticket-count').live('click', function() {
Line 644... Line 685...
644
        $('div#refundByGateway').hide();
685
        $('div#refundByGateway').hide();
645
        $('#refundDetailSubmit').removeAttr('disabled');
686
        $('#refundDetailSubmit').removeAttr('disabled');
646
       
687
       
647
    });
688
    });
648
    
689
    
-
 
690
    /*
-
 
691
    $('input#returnTxnRadio').live('click', function() {
-
 
692
    	$('div#returnPkupInput').hide();
-
 
693
    	$('div#returnTxnInput').show();
-
 
694
    });
-
 
695
    
-
 
696
    $('input#returnPkupRadio').live('click', function() {
-
 
697
    	$('div#returnPkupInput').show();
-
 
698
    	$('div#returnTxnInput').hide();
-
 
699
    });*/
649
 
700
 
650
 
701
 
651
});
702
});