start backbone.history when project is done loading (loadingStatus = false)
authorrougeronj
Mon, 15 Jun 2015 12:08:14 +0200
changeset 481 66c3b474a331
parent 480 a5da9a586297
child 482 a55c33989404
start backbone.history when project is done loading (loadingStatus = false)
client/js/dataloader.js
client/js/renderer/scene.js
--- a/client/js/dataloader.js	Mon Jun 15 11:02:09 2015 +0200
+++ b/client/js/dataloader.js	Mon Jun 15 12:08:14 2015 +0200
@@ -67,7 +67,6 @@
         this.project.set(this.convert(data), {
             validate: true
         });
-        Backbone.history.start();
     };
 
 })(window);
--- a/client/js/renderer/scene.js	Mon Jun 15 11:02:09 2015 +0200
+++ b/client/js/renderer/scene.js	Mon Jun 15 12:08:14 2015 +0200
@@ -365,6 +365,9 @@
                     _this.$.find(".loader").hide(250);
                 }, 3000);
             }
+            else{
+                Backbone.history.start();
+            }
         });
 
         this.renkan.project.on("add:users remove:users", _thRedrawUsers);