mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-10-05 12:20:47 +08:00
Focus on input of new task
This commit is contained in:
1 parent
4385ef6575
commit
98400285f9
1 file changed
+1
-1
@@ -58,7 +58,7 @@ var app = app || {};
|
||||
if ( e.which === ENTER_KEY ) {
|
||||
app.Tasks.add({content:'', parent_id: this.model.get('parent_id')});
|
||||
this.$input.blur();
|
||||
this.$el.prev('li').find('input').focus();
|
||||
this.$el.next('li').find('input').focus();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user