Focus on input of new task

This commit is contained in:
Abhishek Das
2013-04-10 22:19:18 +05:30
parent 4385ef6575
commit 98400285f9
+1 -1
View File
@@ -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();
}
},