typo corrections

This commit is contained in:
Paul Liverman III 2018-04-24 06:27:57 -07:00
parent 7989e83be4
commit a164fe7d68
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class Simplex extends Application
-- NOTE TEMPORARY
if @user
@keys = APIKeys\select "WHERE user_id = ?", @user.id
@tasls = Tasks\select "WHERE user_id = ?", @user.id
@tasks = Tasks\select "WHERE user_id = ?", @user.id
unless @keys and #@keys > 0
@keys = {APIKeys\create(@user)}

View File

@ -43,7 +43,7 @@ function new_task() {
if (xhr.readyState === 4) {
data = JSON.parse(xhr.responseText);
if (data.task) {
$("#new-task").before("<li><input type='checkbox' id='task-" + data.task.id + "' onchange='check(" + data.task.id + ")' checked=false> " + data.task.content + "</li>");
$("#new-task").before("<li><input type='checkbox' id='task-" + data.task.id + "' onchange='check(" + data.task.id + ")'> " + data.task.content + "</li>");
} else {
console.log(data); // NOTE TEMPORARY (handle errors better!)
}