mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-20 12:00:19 +08:00
Sublists are being rendered as expected;
* Setting each task's `margin-left` according to it's parent * Putting a view element inside another view element was causing issues
This commit is contained in:
@@ -27,8 +27,10 @@ var app = app || {};
|
||||
model: task
|
||||
});
|
||||
var a = taskView.render();
|
||||
this.$el.append(a.el);
|
||||
//a.$input.focus();
|
||||
if (a.model.get('parent_id')!=0)
|
||||
a.$el.insertAfter($('*[data-id="'+a.model.get('parent_id')+'"]').parents('li:first'));
|
||||
else
|
||||
this.$el.append(a.el);
|
||||
console.log(a.$input.prop('selectionStart'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user