trying to stop form submission

This commit is contained in:
Paul Liverman III 2018-03-16 17:10:22 -07:00
parent 30f3fb516a
commit b2a31cc045

View File

@ -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"