Subversion Repositories SmartDukaan

Rev

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

Rev 3339 Rev 3390
Line 194... Line 194...
194
        success : function(response) {
194
        success : function(response) {
195
            $('#' + domId).html(response);
195
            $('#' + domId).html(response);
196
            $('#user-activity tr').removeClass('selected');
196
            $('#user-activity tr').removeClass('selected');
197
            $('#activity tr').removeClass('selected');
197
            $('#activity tr').removeClass('selected');
198
            $('#activity-row-' + activityId).addClass('selected');
198
            $('#activity-row-' + activityId).addClass('selected');
-
 
199
            $('#user-activity').css('table-layout', 'fixed');
-
 
200
            $('#activity').css('table-layout', 'fixed');
199
        }
201
        }
200
    });
202
    });
201
}
203
}
202
 
204
 
203
function loadActivityPane(domId, userId) {
205
function loadActivityPane(domId, userId) {
Line 413... Line 415...
413
    $(".truncated-text").truncate({
415
    $(".truncated-text").truncate({
414
        width : widthSize,
416
        width : widthSize,
415
        addtitle : true
417
        addtitle : true
416
    });
418
    });
417
}
419
}
-
 
420
 
-
 
421
function markAsRead(activityId) {
-
 
422
    $.ajax({
-
 
423
        type : "POST",
-
 
424
        url : "/crm/activity!markAsRead?activityId=" + activityId,
-
 
425
        success: function(response) {
-
 
426
            listActivities('infopane', "creatorId=1");
-
 
427
        }
-
 
428
    });
-
 
429
}