Subversion Repositories SmartDukaan

Rev

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

Rev 4689 Rev 4705
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-form').live(
111
    $('form#cancel-form').live('submit',
112
            'submit',
-
 
113
            function() {
112
    		function() {
-
 
113
    	if( $('#cancelReasonBox').attr('style') && !($('#cancelReasonBox').attr('style').indexOf('none'))) {
114
            	var body = $('#cancel-body').val().trim();
114
    	var body = $('#cancel-body').val().trim();
115
            	if ((body == null || body == '')&& !$('#cancelReasonBox').attr('style').indexOf('none')) {
115
    	if (body == null || body == '') {
116
                	alert('Please specify description');
116
    		alert('Please specify description');
117
                	return false;
117
    		return false;
118
            	}
118
    	}
-
 
119
    }
119
                var ticketId = $('.display-cancel-order-popup').attr('ticketId');
120
    var ticketId = $('.display-cancel-order-popup').attr('ticketId');
120
                var orderId = $('.display-cancel-order-popup').attr('orderId');
121
    var orderId = $('.display-cancel-order-popup').attr('orderId');
121
                var orderStatus = $('.display-cancel-order-popup').attr('orderStatus');
122
    var orderStatus = $('.display-cancel-order-popup').attr('orderStatus');
122
                cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
123
    cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
123
                $.colorbox.close();
124
    $.colorbox.close();
124
                return false;
125
    return false;
125
            });
126
	});
126
 
127
 
127
    $('form#activity-mail-form').live(
128
    $('form#activity-mail-form').live(
128
            'submit',
129
            'submit',
129
            function() {
130
            function() {
130
                createActivity("infopane", $(this).serialize() + '&' + $("#create-activity-form").serialize());
131
                createActivity("infopane", $(this).serialize() + '&' + $("#create-activity-form").serialize());