From b2a31cc045fb170315e6ecec59a5233e5791a6c4 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Fri, 16 Mar 2018 17:10:22 -0700 Subject: [PATCH] trying to stop form submission --- views/index/logged_in.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"