derped on reserved words in JS

This commit is contained in:
Paul Liverman III 2018-03-16 17:07:31 -07:00
parent 47869e2047
commit 30f3fb516a
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ make_migrations {
{"updated_at", types.time}
}
create_table "keys", {
{"user_id", types.foreign_key primary_key: true}
{"user_id", types.foreign_key}
{"uuid", types.varchar unique: true}
{"created_at", types.time}

View File

@ -28,7 +28,7 @@ function check(id) {
}
}
function new() {
function new_task() {
var text = document.getElementById("new-task");
console.log(text); // TEMPORARY
var xhr = request("/new");

View File

@ -21,7 +21,7 @@ class extends Widget
text " #{task.text}"
li ->
form {
onsubmit: "new()"
onsubmit: "new_task()"
}, ->
input type: "text", id: "new-task", placeholder: "new task"
input type: "submit", value: "add task"