Subversion Repositories SmartDukaan

Rev

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

Rev 3405 Rev 3422
Line 168... Line 168...
168
        },
168
        },
169
        "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
169
        "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
170
    });
170
    });
171
}
171
}
172
 
172
 
173
function loadActivityInfo(domId, userId, activityId) {
173
function loadActivityInfo(domId, activityId) {
174
    $.ajax({
174
    $.ajax({
175
        type : "GET",
175
        type : "GET",
176
        url : "/crm/activity-info?userId=" + userId + "&activityId="
176
        url : "/crm/activity-info?activityId=" + activityId,
177
                + activityId,
-
 
178
        success : function(response) {
177
        success : function(response) {
179
            $('#' + domId).html(response);
178
            $('#' + domId).html(response);
180
            $('#activity tr').removeClass('selected');
179
            $('#activity tr').removeClass('selected');
181
            $('#activity-row-' + activityId).addClass('selected');
180
            $('#activity-row-' + activityId).addClass('selected');
182
            $('#activity').css('table-layout', 'fixed');
181
            $('#activity').css('table-layout', 'fixed');
Line 287... Line 286...
287
 
286
 
288
function goToHomePage() {
287
function goToHomePage() {
289
    document.location.href = "/crm";
288
    document.location.href = "/crm";
290
}
289
}
291
 
290
 
292
function loadTickets(domId, getURL) {
291
function loadTickets(domId, getURL, ticketId) {
293
    $.ajax({
292
    $.ajax({
294
        type : "GET",
293
        type : "GET",
295
        url : getURL,
294
        url : getURL,
296
        success : function(response) {
295
        success : function(response) {
297
            $('#' + domId).html(response);
296
            $('#' + domId).html(response);
298
            var ticketTable = createTicketDataTable('tickets');
297
            var ticketTable = createTicketDataTable('tickets');
-
 
298
            if (ticketId != null) {
-
 
299
                loadTicketInfo("bottom-infopane", ticketId, ticketTable.dataTable(), null);
-
 
300
                ticketTable.css('table-layout', 'fixed');
-
 
301
            }
299
        }
302
        }
300
    });
303
    });
301
}
304
}
302
 
305
 
303
function processActivityTypeChange(userId, activityType) {
306
function processActivityTypeChange(activityType) {
304
    if (activityType == "SEND_EMAIL_TO_CUSTOMER") {
307
    if (activityType == "SEND_EMAIL_TO_CUSTOMER") {
305
        $.colorbox({
308
        $.colorbox({
306
            inline : true,
309
            inline : true,
307
            width : "735px",
310
            width : "735px",
308
            height : "365px",
311
            height : "365px",