diff --git a/js/app/models/InteractiveNode.js b/js/app/models/InteractiveNode.js index 2f0a869..975ca9f 100644 --- a/js/app/models/InteractiveNode.js +++ b/js/app/models/InteractiveNode.js @@ -83,6 +83,8 @@ Ext.define('amdaModel.InteractiveNode', { } }, + onReady : null, + constructor : function(config) { this.callParent(arguments); @@ -767,9 +769,12 @@ Ext.define('amdaModel.InteractiveNode', { me.editInModule(null, onReady); } else - { + { // call the ext method to get the details of parameter - // the edition of real parameter is done into callback method getObjectCallback + // the edition of real parameter is done into callback method getObjectCallback + if (onReady) + me.onReady = onReady; + AmdaAction.getObject(me.get('id'), me.get('nodeType'), me.getObjectCallback, me); } }); @@ -786,8 +791,8 @@ Ext.define('amdaModel.InteractiveNode', { var paramObj = Ext.create(this.get('objectDataModel'), result); // set parameter into node this.set('object',paramObj); - // Edition of parameter into parameter Module - this.editInModule(); + // Edition of parameter into parameter Module + this.editInModule(null, this.onReady); } else { // EXCEPTION : parameter not found !? -- libgit2 0.21.2