client/js/renderer/nodeeditor.js
changeset 461 48235ed6b07d
parent 459 98cae534083d
parent 450 88e8673aaeeb
child 468 364c367df7fc
--- a/client/js/renderer/nodeeditor.js	Wed Jun 03 19:16:58 2015 +0200
+++ b/client/js/renderer/nodeeditor.js	Thu Jun 04 10:04:01 2015 +0200
@@ -12,6 +12,8 @@
         _init: function() {
             BaseEditor.prototype._init.apply(this);
             this.template = this.options.templates['templates/nodeeditor.html'];
+            //this.templates['default']= this.options.templates['templates/nodeeditor.html'];
+            //fusionner avec this.options.node_editor_templates
             this.readOnlyTemplate = this.options.templates['templates/nodeeditor_readonly.html'];
         },
         draw: function() {
@@ -238,8 +240,10 @@
             });
         },
         redraw: function() {
-            var _coords = this.source_representation.paper_coords;
-            Utils.drawEditBox(this.options, _coords, this.editor_block, this.source_representation.circle_radius * 0.75, this.editor_$);
+            if (this.options.popup_editor){
+                var _coords = this.source_representation.paper_coords;
+                Utils.drawEditBox(this.options, _coords, this.editor_block, this.source_representation.circle_radius * 0.75, this.editor_$);                
+            }
             this.editor_$.show();
             paper.view.draw();
         }