diff -r 192ce5938726 -r 02e3c464223f client/js/renderer/tempedge.js --- a/client/js/renderer/tempedge.js Thu Jun 23 17:50:37 2016 +0200 +++ b/client/js/renderer/tempedge.js Fri Jun 24 13:07:21 2016 +0200 @@ -14,6 +14,7 @@ _init: function() { this.renderer.edge_layer.activate(); this.type = "Temp-edge"; + this.origin = Utils.OriginEnum.NONE; var _color = (this.project.get("users").get(this.renkan.current_user) || Utils._USER_PLACEHOLDER(this.renkan)).get("color"); this.line = new paper.Path(); @@ -56,18 +57,19 @@ }, mouseup: function(_event, _isTouch) { var _hitResult = paper.project.hitTest(_event.point), - _model = this.from_representation.model, - _endDrag = true; + _model = this.from_representation.model, + _endDrag = true; if (_hitResult && typeof _hitResult.item.__representation !== "undefined") { var _target = _hitResult.item.__representation; if (_target.type.substr(0,4) === "Node") { var _destmodel = _target.model || _target.source_representation.model; if (_model !== _destmodel) { var _data = { - id: Utils.getUID('edge'), - created_by: this.renkan.current_user, - from: _model, - to: _destmodel + id: Utils.getUID('edge'), + created_by: this.renkan.current_user, + from: _model, + to: _destmodel, + origin: this.origin }; if (this.renderer.isEditable()) { this.project.addEdge(_data);