HTML and CSS Reference
In-Depth Information
$('#taskRow').tmpl(task ).appendTo( $(taskPage ).find( '#tblTasks tbody'));
});
taskCountChanged();
}, errorLogger);
}
And we also need to call it after deleting a task - since in that case we do not call loadTasks:
$(taskPage).find('#tblTasks tbody').on('click', '.deleteRow',
function(evt) {
storageEngine.delete('task', $(evt.target ).data( ).taskId,
function() {
$(evt.target).parents('tr').remove();
taskCountChanged();
}, errorLogger);
});
The only thing to note about this implementation is that the footer is not part of the tasks
page: therefore we cannot access the footer in the context of $(taskPage).
Search WWH ::




Custom Search