Fix INVALID_RESPONSE error in the file app

This commit is contained in:
yflory
2018-02-16 12:02:20 +01:00
parent 54a91f1153
commit 037a6ccc35
4 changed files with 12 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ define([
Sortable.create($list[0], {
store: {
get: function (sortable) {
get: function () {
return todo.getOrder();
},
set: function (sortable) {
@@ -135,6 +135,8 @@ define([
$taskDiv.addClass('cp-app-todo-task-complete');
}
var $span = $('<span>', { 'class': 'cp-app-todo-task-text' });
var $input = $('<input>', {
type: 'text',
'class': 'cp-app-todo-task-input'
@@ -147,8 +149,7 @@ define([
}
}).appendTo($taskDiv);
var $span = $('<span>', { 'class': 'cp-app-todo-task-text' })
.text(entry.task)
$span.text(entry.task)
.appendTo($taskDiv)
.click(function () {
$input.show();