Commit 0c154100e8ae9ed22faacbdb202a08022ca945cf
1 parent
0d95ceab
Exists in
master
and in
112 other branches
redmine #5141 part.2
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
js/app/models/InteractiveNode.js
... | ... | @@ -83,6 +83,8 @@ Ext.define('amdaModel.InteractiveNode', { |
83 | 83 | } |
84 | 84 | }, |
85 | 85 | |
86 | + onReady : null, | |
87 | + | |
86 | 88 | constructor : function(config) |
87 | 89 | { |
88 | 90 | this.callParent(arguments); |
... | ... | @@ -767,9 +769,12 @@ Ext.define('amdaModel.InteractiveNode', { |
767 | 769 | me.editInModule(null, onReady); |
768 | 770 | } |
769 | 771 | else |
770 | - { | |
772 | + { | |
771 | 773 | // call the ext method to get the details of parameter |
772 | - // the edition of real parameter is done into callback method getObjectCallback | |
774 | + // the edition of real parameter is done into callback method getObjectCallback | |
775 | + if (onReady) | |
776 | + me.onReady = onReady; | |
777 | + | |
773 | 778 | AmdaAction.getObject(me.get('id'), me.get('nodeType'), me.getObjectCallback, me); |
774 | 779 | } |
775 | 780 | }); |
... | ... | @@ -786,8 +791,8 @@ Ext.define('amdaModel.InteractiveNode', { |
786 | 791 | var paramObj = Ext.create(this.get('objectDataModel'), result); |
787 | 792 | // set parameter into node |
788 | 793 | this.set('object',paramObj); |
789 | - // Edition of parameter into parameter Module | |
790 | - this.editInModule(); | |
794 | + // Edition of parameter into parameter Module | |
795 | + this.editInModule(null, this.onReady); | |
791 | 796 | } |
792 | 797 | else { |
793 | 798 | // EXCEPTION : parameter not found !? |
... | ... |