mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-17 11:23:36 +08:00
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:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user