bugfix parent to parentId

This commit is contained in:
2016-01-29 10:00:13 +08:00
parent 57fb0a73af
commit 34695ac9ce
5 changed files with 13 additions and 9 deletions
+5 -1
View File
@@ -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();