HTML and CSS Reference
In-Depth Information
$('#taskRow').tmpl(task ).appendTo( $(taskPage ).find( '#tblTasks tbody'));
}, 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', $( ).data( ).taskId,
function() {
}, 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