--- a/server/src/main/webapp/static/js/corenkan.js Sat Mar 16 04:37:05 2013 +0100
+++ b/server/src/main/webapp/static/js/corenkan.js Sun Mar 17 02:24:56 2013 +0100
@@ -55,12 +55,12 @@
this.collab = coweb.initCollab({id : "renkan_" + id});
- this.collab.subscribeStateResponse(this, "onStateResponse");
-
this.collab.subscribeSync("project", this, "onRemoteProjectChange");
this.collab.subscribeSync("user", this, "onRemoteUserChange");
this.collab.subscribeSync("node", this, "onRemoteNodeChange");
this.collab.subscribeSync("edge", this, "onRemoteEdgeChange");
+
+ this.collab.subscribeStateResponse(this, "onStateResponse");
};
@@ -104,7 +104,7 @@
obj = json.parse(state);
console.log("State response", obj);
obj['_id'] = obj['id'];
- this.project.set(obj);
+ this.project.set(obj, {silent: true});
};
function prepareValues(obj,c) {
@@ -299,7 +299,7 @@
id: obj.id,
_type: "project",
_project_id: obj.id,
- _user_id : (this.project.current_user!=null)?this.project.current_user.id:null
+ _user_id : (that.project.current_user!=null)?that.project.current_user.id:null
};
values[field] = c;
that.collab.sendSync("project", values);