corrected errors with new task template
This commit is contained in:
parent
b9eb1f16a7
commit
2e51aff4be
@ -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) {
|
||||
|
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user