mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-05 12:40:39 +08:00
bugfix parent to parentId
This commit is contained in:
@@ -160,11 +160,15 @@ define(
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Add a new blank note
|
||||
* @param {object} inputEle Input elelement from parent item
|
||||
*/
|
||||
addNote: function (inputEle) {
|
||||
var $inputEle = $(inputEle);
|
||||
Tasks.add({
|
||||
content: '',
|
||||
parentId: this.model.get('parentId')
|
||||
parentId: $inputEle.data('id')||0
|
||||
});
|
||||
$inputEle.blur();
|
||||
$inputEle.closest('li').next('li').find('input').focus();
|
||||
|
||||
Reference in New Issue
Block a user