fix small bug about idNode parameter
authorrougeronj
Mon, 14 Sep 2015 18:09:36 +0200
changeset 520 f14ff8669037
parent 519 b94a34c139c1
child 521 0d9b3f1b97e7
fix small bug about idNode parameter
client/js/renderer/scene.js
client/templates/nodeeditor_readonly.html
--- a/client/js/renderer/scene.js	Mon Sep 14 18:02:00 2015 +0200
+++ b/client/js/renderer/scene.js	Mon Sep 14 18:09:36 2015 +0200
@@ -1232,9 +1232,9 @@
                 this.view.autoScale();
             }
             //other parameters must go after because most of them depends on a view that must be initialize before
+            this.unhighlightAll();
             if (typeof _params.idNode !== 'undefined'){
-                this.unhighlightAll();
-                this.highlightModel(this.renkan.project.get("nodes").get(_params.iNnode));                 
+                this.highlightModel(this.renkan.project.get("nodes").get(_params.idNode));                 
             }
         },
         foldBins: function() {
--- a/client/templates/nodeeditor_readonly.html	Mon Sep 14 18:02:00 2015 +0200
+++ b/client/templates/nodeeditor_readonly.html	Mon Sep 14 18:09:36 2015 +0200
@@ -26,4 +26,4 @@
         <%- shortenText(node.created_by_title, 25) %>
     </p>
 <% } %>
-    <a href="#?idnode=<%-node._id%>"><%-renkan.translate("Link to the node")%></a>
+    <a href="#?idNode=<%-node._id%>"><%-renkan.translate("Link to the node")%></a>