trying to stop form submission
This commit is contained in:
parent
30f3fb516a
commit
b2a31cc045
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user