client/js/full-json.js
changeset 516 7d1d44b53af5
parent 444 19f0b7803aed
child 543 5f7bebdcfc0d
--- a/client/js/full-json.js	Fri Sep 11 16:34:41 2015 +0200
+++ b/client/js/full-json.js	Mon Sep 14 11:48:24 2015 +0200
@@ -19,7 +19,6 @@
                 saveStatus : 0
             });
             _renkan.renderer.redrawActive = true;
-            _renkan.renderer.fixSize();
         });
     };
     var _save = function() {
@@ -45,6 +44,9 @@
     var _thrSave = Rkns._.throttle(function() {
         setTimeout(_save, 100);
     }, 1000);
+    
+    //TODO: Rearrange to avoid the 2 firts PUT due to a change in the project model
+    // Take car of setting up the listener correctly to listen the save action on the view
     _proj.on("add:nodes add:edges add:users add:views", function(_model) {
         _model.on("change remove", function(_model) {
             _thrSave();