- ModelGraphEditor.prototype.updateDataNode = function (args) {
- //FIXME updating a node properties need commit to server side!
- this.parent.updateDataNode.call(this, args);
+ ModelGraphEditor.prototype.updateDataNode = function (node, args, success, error) {
+ console.log(node)
+ var controller = new TCD3.OsmController();
+ controller.updateNode(this,node, args, function(){
+
+ }, error);
+ };
+
+ /**
+ * Update the data properties of the node
+ * @param {Object} Required. An object that specifies tha data of the node.
+ * @returns {boolean}
+ */
+ ModelGraphEditor.prototype.updateGraphParams = function (args, success, error) {
+ var controller = new TCD3.OsmController();
+ controller.updateGraphParams(args, function(){
+
+ }, error);