Fixed PageView::createNewTask which referenced Task model without requiring it

Fixed task template to remove unneeded textarea
Removed commented out code on index template
This commit is contained in:
DC*
2014-08-07 23:31:15 -03:00
parent 2cef41ffb7
commit f5c1f27863
4 changed files with 27 additions and 38 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ taskTemplate
this.listenTo(this.model, 'change', this.render);
this.listenTo(this.model, 'destroy', this.remove);
this.socket = io.connect();
var task = this;
var task = this;
this.socket.on('task', function(data){
if (task.model.id == data.id) {
task.model.set({'content':data.content, 'is_completed':data.is_completed});