--- 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();
}