diff --git a/views/index/logged_in.moon b/views/index/logged_in.moon index 0c9b61d..2cbcf62 100644 --- a/views/index/logged_in.moon +++ b/views/index/logged_in.moon @@ -17,11 +17,11 @@ class extends Widget if @tasks for task in *@tasks li -> - input type: "checkbox", id: "task-#{task.id}", onchange: "check(#{task.id})", checked: task.done + input type: "checkbox", id: "task-#{task.id}", onchange: "check(#{task.id});", checked: task.done text " #{task.text}" li -> form { - onsubmit: "new_task()" + onsubmit: "return new_task();" }, -> input type: "text", id: "new-task", placeholder: "new task" input type: "submit", value: "add task"