mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-10 00:30:34 +08:00
Task gets added but not saved; Fix it
This commit is contained in:
@@ -48,7 +48,11 @@ var app = app || {};
|
||||
|
||||
add: function(e) {
|
||||
if ( e.which === ENTER_KEY ) {
|
||||
console.log('Add stuff here');
|
||||
this.$input.blur();
|
||||
var task = new app.Task({content:''});
|
||||
var taskView = new app.TaskView({model:task}).render();
|
||||
taskView.$el.insertAfter(this.$el);
|
||||
taskView.$input.focus();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user