| changeset 383 | ba1f278841a2 |
| parent 377 | 1d87c4342e5d |
| child 390 | 43833e4cb813 |
--- a/client/js/main.js Wed Feb 04 18:07:37 2015 +0100 +++ b/client/js/main.js Thu Feb 05 13:19:42 2015 +0100 @@ -109,6 +109,15 @@ this.project = new Rkns.Models.Project(); + this.setCurrentUser = function (user_id, user_name) { + this.project.addUser({ + _id:user_id, + title: user_name + }); + this.current_user = user_id; + this.renderer.redrawUsers(); + }; + if (typeof this.options.user_id !== "undefined") { this.current_user = this.options.user_id; }