Subversion Repositories SmartDukaan

Rev

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

Rev 4681 Rev 4689
Line 106... Line 106...
106
                        + $('#update-ticket-form').serialize());
106
                        + $('#update-ticket-form').serialize());
107
                $.colorbox.close();
107
                $.colorbox.close();
108
                return false;
108
                return false;
109
            });
109
            });
110
    
110
    
111
    $('form#cancel-cod-form').live(
111
    $('form#cancel-form').live(
112
            'submit',
112
            'submit',
113
            function() {
113
            function() {
114
            	var body = $('#cancel-cod-body').val().trim();
114
            	var body = $('#cancel-body').val().trim();
115
            	if (body == null || body == '') {
115
            	if ((body == null || body == '')&& !$('#cancelReasonBox').attr('style').indexOf('none')) {
116
                	alert('Please specify description');
116
                	alert('Please specify description');
117
                	return false;
117
                	return false;
118
            	}
118
            	}
119
                var ticketId = $('.display-cancel-order-popup').attr('ticketId');
119
                var ticketId = $('.display-cancel-order-popup').attr('ticketId');
120
                var orderId = $('.display-cancel-order-popup').attr('orderId');
120
                var orderId = $('.display-cancel-order-popup').attr('orderId');
Line 280... Line 280...
280
    $('.update-order-status').live('click', function() {
280
    $('.update-order-status').live('click', function() {
281
        updateOrderStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), $(this).attr('orderStatus'));
281
        updateOrderStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), $(this).attr('orderStatus'));
282
    });
282
    });
283
    
283
    
284
    $('.display-cancel-order-popup').live('click', function() {
284
    $('.display-cancel-order-popup').live('click', function() {
285
    	displayCancelOrderPopUp()
285
    	displayCancelOrderPopUp();
286
    });
286
    });
287
 
287
 
288
    $('.list-my-unread-activity').live('click', function() {
288
    $('.list-my-unread-activity').live('click', function() {
289
        loadUnreadActivities('infopane');
289
        loadUnreadActivities('infopane');
290
    });
290
    });
291
 
291
 
292
    $('form.change-address').live('submit', function() {
292
    $('form.change-address').live('submit', function() {
293
        changeAddress($(this).serialize());
293
        changeAddress($(this).serialize());
294
    });
294
    });
295
    
295
    
-
 
296
    $('#orderCancellationButton').live('click', function(){
-
 
297
        displayCancelOrderPopUp();
-
 
298
    });
-
 
299
    
296
    $('input.cancelReason').live('change', function(){
300
    $('input.cancelReason').live('change', function(){
297
    	showHidecancelReasonDiv($(this).attr('id'));
301
    	showHidecancelReasonDiv($(this).attr('id'));
298
    });
302
    });
299
    
-
 
300
});
303
});
301
304