mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-19 11:19:50 +08:00
Fixed addnote
This commit is contained in:
@@ -37,10 +37,10 @@ TaskView
|
||||
model: task
|
||||
});
|
||||
var a = taskView.render();
|
||||
if (a.model.get('parent')!=0)
|
||||
a.$el.insertAfter($('*[data-id="'+a.model.get('parent')+'"]').parents('li:first'));
|
||||
else
|
||||
if (a.model.get('parent')===null||a.model.get('parent')===0)
|
||||
this.$el.append(a.el);
|
||||
else
|
||||
a.$el.insertAfter($('*[data-id="'+a.model.get('parent')+'"]').parents('li:first'));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user