fix fade out of item-details on task deletion
This commit is contained in:
@@ -237,6 +237,8 @@ function task_delete(task_id, task_etag, task_delete_url) {
|
||||
throw new ReferenceError("task_delete(" + task_id + ", " + task_etag + ", " + task_delete_url + ") called.");
|
||||
}
|
||||
|
||||
$('#task-' + task_id).addClass('processing');
|
||||
|
||||
$.ajax({
|
||||
type: 'DELETE',
|
||||
url: task_delete_url,
|
||||
@@ -244,7 +246,7 @@ function task_delete(task_id, task_etag, task_delete_url) {
|
||||
})
|
||||
.done(function(e) {
|
||||
if (console) console.log('Task', task_id, 'was deleted.');
|
||||
$('#task-details').fadeOutAndClear();
|
||||
$('#item-details').fadeOutAndClear();
|
||||
_remove_task_from_list(task_id);
|
||||
})
|
||||
.fail(function(xhr) {
|
||||
|
Reference in New Issue
Block a user