Subversion Repositories SmartDukaan

Rev

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

Rev 4164 Rev 4241
Line 41... Line 41...
41
 
41
 
42
        // will be set when ticket Id link is clicked from activity page
42
        // will be set when ticket Id link is clicked from activity page
43
        var activityId = $(this).attr('activityId');
43
        var activityId = $(this).attr('activityId');
44
        loadTicketInfo("bottom-infopane", ticketId, null, activityId);
44
        loadTicketInfo("bottom-infopane", ticketId, null, activityId);
45
    });
45
    });
-
 
46
    
-
 
47
    $("a.show-activity-description").live('click', function() {
-
 
48
    	loadActivityDescription("activity-description-pane", this);
-
 
49
    });
46
 
50
 
47
    $("a.show-activity-details").live('click', function() {
51
    $("a.show-activity-details").live('click', function() {
48
        var activityId = $(this).attr('activityId');
52
        var activityId = $(this).attr('activityId');
49
        loadActivityInfo("bottom-infopane", activityId);
53
        loadActivityInfo("bottom-infopane", activityId);
50
    });
54
    });
51
 
55
    
52
    $("a.create-ticket").live('click', function() {
56
    $("a.create-ticket").live('click', function() {
53
        var userId = $(this).attr('userId');
57
        var userId = $(this).attr('userId');
54
 
58
 
55
        var params = null;
59
        var params = null;
56
        if (userId != null && userId != "") {
60
        if (userId != null && userId != "") {
Line 101... Line 105...
101
                updateTicket("infopane", ticketId, $(this).serialize() + '&'
105
                updateTicket("infopane", ticketId, $(this).serialize() + '&'
102
                        + $('#update-ticket-form').serialize());
106
                        + $('#update-ticket-form').serialize());
103
                $.colorbox.close();
107
                $.colorbox.close();
104
                return false;
108
                return false;
105
            });
109
            });
-
 
110
    
-
 
111
    $('form#cancel-cod-form').live(
-
 
112
            'submit',
-
 
113
            function() {
-
 
114
            	var body = $('#cancel-cod-body').val().trim();
-
 
115
            	if (body == null || body == '') {
-
 
116
                	alert('Please specify description');
-
 
117
                	return false;
-
 
118
            	}
-
 
119
                var ticketId = $('.display-cancel-order-popup').attr('ticketId');
-
 
120
                var orderId = $('.display-cancel-order-popup').attr('orderId');
-
 
121
                var orderStatus = $('.display-cancel-order-popup').attr('orderStatus');
-
 
122
                cancelOrder("bottom-infopane", ticketId, orderId, orderStatus, $(this).serialize());
-
 
123
                $.colorbox.close();
-
 
124
                return false;
-
 
125
            });
106
 
126
 
107
    $('form#activity-mail-form').live(
127
    $('form#activity-mail-form').live(
108
            'submit',
128
            'submit',
109
            function() {
129
            function() {
110
                createActivity("infopane", $(this).serialize() + '&' + $("#create-activity-form").serialize());
130
                createActivity("infopane", $(this).serialize() + '&' + $("#create-activity-form").serialize());
Line 205... Line 225...
205
    });
225
    });
206
    
226
    
207
    $('.update-order-status').live('click', function() {
227
    $('.update-order-status').live('click', function() {
208
        updateOrderStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), $(this).attr('orderStatus'));
228
        updateOrderStatus('bottom-infopane', $(this).attr('ticketId'), $(this).attr('orderId'), $(this).attr('orderStatus'));
209
    });
229
    });
-
 
230
    
-
 
231
    $('.display-cancel-order-popup').live('click', function() {
-
 
232
    	displayCancelOrderPopUp()
-
 
233
    });
210
 
234
 
211
    $('.list-my-unread-activity').live('click', function() {
235
    $('.list-my-unread-activity').live('click', function() {
212
        loadUnreadActivities('infopane');
236
        loadUnreadActivities('infopane');
213
    });
237
    });
214
 
238