client/js/renderer/scene.js
changeset 455 18b9be54174d
parent 453 04b7d46e9d67
parent 443 4c7ab16e5845
child 463 41325cc50574
child 471 e0c7be5dc02c
--- a/client/js/renderer/scene.js	Fri May 22 17:50:10 2015 +0200
+++ b/client/js/renderer/scene.js	Tue Jun 02 16:42:02 2015 +0200
@@ -338,8 +338,8 @@
         _thRedrawUsers();
 
         // register model events
-        this.renkan.project.on("change:save_status", function(){
-            switch (_this.renkan.project.get("save_status")) {
+        this.renkan.project.on("change:saveStatus", function(){
+            switch (_this.renkan.project.get("saveStatus")) {
                 case 0: //clean
                     _this.$.find(".Rk-Save-Button").removeClass("to-save");
                     _this.$.find(".Rk-Save-Button").removeClass("saving");
@@ -358,8 +358,8 @@
             }
         });
 
-        this.renkan.project.on("change:loading_status", function(){
-            if (_this.renkan.project.get("loading_status")){
+        this.renkan.project.on("change:loadingStatus", function(){
+            if (_this.renkan.project.get("loadingStatus")){
                 var animate = _this.$.find(".loader").addClass("run");
                 var timer = setTimeout(function(){
                     _this.$.find(".loader").hide(250);
@@ -380,13 +380,13 @@
 
         this.renkan.project.on("add:nodes", function(_node) {
             _this.addRepresentation("Node", _node);
-            if (!_this.renkan.project.get("loading_status")){
+            if (!_this.renkan.project.get("loadingStatus")){
                 _thRedraw();
             }
         });
         this.renkan.project.on("add:edges", function(_edge) {
             _this.addRepresentation("Edge", _edge);
-            if (!_this.renkan.project.get("loading_status")){
+            if (!_this.renkan.project.get("loadingStatus")){
                 _thRedraw();
             }
         });
@@ -742,7 +742,7 @@
         addRepresentations: function(_type, _collection) {
             var _this = this;
             _collection.forEach(function(_model) {
-                //_this.addRepresentation(_type, _model);
+                _this.addRepresentation(_type, _model);
             });
         },
         userTemplate: _.template(