corrected errors with new task template

This commit is contained in:
Paul Liverman III 2018-04-24 16:49:36 -07:00
parent b9eb1f16a7
commit 2e51aff4be
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ function new_task() {
input.change(function() {
check(data.task.id);
});
input.next().replaceWith(" " + data.task.content);
input.after(" " + data.task.content);
$("#new-task").before(template);
})
.fail(function(request) {

View File

@ -5,7 +5,7 @@ class LoggedIn extends Widget
task_item = (task={}) ->
li ->
input type: "checkbox", id: "task-#{task.id}", onchange: "check(#{task.id});", checked: task.done
text " #{task.content}"
text " #{task.content}" if task.content
api_key_item = (key="") ->
li ->