Added nested rendering, collapsing nodes, uses marionette

This commit is contained in:
2016-01-30 21:00:33 +08:00
parent cf89df815d
commit c17412477d
10 changed files with 264 additions and 171 deletions
+3 -1
View File
@@ -13,6 +13,7 @@ function (
var TaskModel = Backbone.Model.extend({
offlineSync: Backbone.localforage.sync('TaskModel'),
/** switches sync between server and local databases **/
sync: function () {
@@ -26,7 +27,8 @@ function (
parentId: 0,
content: '',
isCompleted: 0,
priority: 0
priority: 0,
id: '',
},
toggelCompletedStatus: function (isCompleted) {