Subversion Repositories SmartDukaan

Rev

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

Rev 7372 Rev 7393
Line 122... Line 122...
122
                return false;
122
                return false;
123
            });
123
            });
124
    
124
    
125
    $('form#cancel-form').live('submit',
125
    $('form#cancel-form').live('submit',
126
    		function() {
126
    		function() {
127
    	if( $('#cancelReasonBox').attr('style') && !($('#cancelReasonBox').attr('style').indexOf('none'))) {
127
    	if( $('#cancel-form.cancelReasonBox').attr('style') && !($('#cancel-form.cancelReasonBox').attr('style').indexOf('none'))) {
128
    	var body = $('#cancel-body').val().trim();
128
    	var body = $('#cancel-form.cancel-body').val().trim();
129
    	if (body == null || body == '') {
129
    	if (body == null || body == '') {
130
    		alert('Please specify description');
130
    		alert('Please specify description');
131
    		return false;
131
    		return false;
132
    	}
132
    	}
133
    }
133
    }
Line 136... Line 136...
136
    var orderStatus = $('.display-cancel-order-popup').attr('orderStatus');
136
    var orderStatus = $('.display-cancel-order-popup').attr('orderStatus');
137
    cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
137
    cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
138
    $.colorbox.close();
138
    $.colorbox.close();
139
    return false;
139
    return false;
140
	});
140
	});
-
 
141
    
-
 
142
    $('#cancel-store-order-form').live('submit',
-
 
143
    		function() {
-
 
144
    	if( $('#cancel-store-order-form.cancelReasonBox').attr('style') && !($('#cancel-store-order-form.cancelReasonBox').attr('style').indexOf('none'))) {
-
 
145
    	var body = $('#cancel-store-order-form.cancel-body').val().trim();
-
 
146
    	if (body == null || body == '') {
-
 
147
    		alert('Please specify description');
-
 
148
    		return false;
-
 
149
    	}
-
 
150
    }
-
 
151
    var ticketId = $('.display-cancel-store-order-popup').attr('ticketId');
-
 
152
    var orderId = $('.display-cancel-store-order-popup').attr('orderId');
-
 
153
    var orderStatus = $('.display-cancel-store-order-popup').attr('orderStatus');
-
 
154
    cancelStoreOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
-
 
155
    $.colorbox.close();
-
 
156
    return false;
-
 
157
	});
141
 
158
 
142
    $('form#cancel-form-limited').live('submit',
159
    $('form#cancel-form-limited').live('submit',
143
    		function() {
160
    		function() {
144
    	if( $('#cancelReasonBox').attr('style') && !($('#cancelReasonBox').attr('style').indexOf('none'))) {
161
    	if( $('#cancel-form-limited.cancelReasonBox').attr('style') && !($('#cancel-form-limited.cancelReasonBox').attr('style').indexOf('none'))) {
145
    	var body = $('#cancel-body').val().trim();
162
    	var body = $('#cancel-form-limited.cancel-body').val().trim();
146
    	if (body == null || body == '') {
163
    	if (body == null || body == '') {
147
    		alert('Please specify description');
164
    		alert('Please specify description');
148
    		return false;
165
    		return false;
149
    	}
166
    	}
150
    }
167
    }
Line 348... Line 365...
348
    
365
    
349
    $('.display-cancel-order-popup').live('click', function(){
366
    $('.display-cancel-order-popup').live('click', function(){
350
        displayCancelOrderPopUp();
367
        displayCancelOrderPopUp();
351
    });
368
    });
352
    
369
    
-
 
370
    $('.display-cancel-store-order-popup').live('click', function(){
-
 
371
        displayCancelStoreOrderPopUp();
-
 
372
    });
-
 
373
    
353
    $('input.cancelReason').live('change', function(){
374
    $('input.cancelReason').live('change', function(){
354
    	showHidecancelReasonDiv($(this).attr('id'));
375
    	showHidecancelReasonDiv($(this).attr('id'));
355
    });
376
    });
356
    
377
    
357
    $('a.manage-agents').live('click', function() {
378
    $('a.manage-agents').live('click', function() {