Few style changes; Task gets appended now but mispositioned cursor +

duplication issues
This commit is contained in:
Abhishek Das
2013-03-31 01:56:19 +05:30
parent cfca359bcf
commit 9546f67af3
5 changed files with 864 additions and 857 deletions
+2 -4
View File
@@ -48,11 +48,9 @@ var app = app || {};
add: function(e) {
if ( e.which === ENTER_KEY ) {
app.Tasks.add({content:''});
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();
//this.next('textarea').focus();
}
},