typo corrections
This commit is contained in:
parent
7989e83be4
commit
a164fe7d68
2
app.moon
2
app.moon
@ -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)}
|
||||
|
@ -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!)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user