Commit a13136921165011518bb6bcc8de63ac1f5d2f3d0
1 parent
98266645
Exists in
master
and in
99 other branches
Real fix for #7238
Showing
1 changed file
with
10 additions
and
2 deletions
Show diff stats
js/app/models/InteractiveNode.js
... | ... | @@ -459,7 +459,16 @@ Ext.define('amdaModel.InteractiveNode', { |
459 | 459 | { |
460 | 460 | if (node.get('disable')) return; |
461 | 461 | myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.plot.id, true, function (module) { |
462 | - module.addParameterToPlot(node); | |
462 | + if (!myDesktopApp.desktop.getWindow(myDesktopApp.dynamicModules.plot.id)) { | |
463 | + var request = Ext.create(amdaPlotObj.PlotRequestObject.$className); | |
464 | + var newNode = Ext.create(amdaModel.PlotNode.$className, { object : request }); | |
465 | + // edit newNode into Plot Module with node as contextNode | |
466 | + newNode.editInModule(); | |
467 | + if((node.get('globalStart') != null) && (node.get('globalStop') != null) && node.get('globalStart') != 'depending on mission' && node.get('isParameter')) { | |
468 | + module.getUiContent().setTimeFromData(node.getTimeFromNode(node)); | |
469 | + } | |
470 | + } | |
471 | + module.getUiContent().addParameter(node); | |
463 | 472 | }); |
464 | 473 | }, |
465 | 474 | |
... | ... | @@ -771,7 +780,6 @@ Ext.define('amdaModel.InteractiveNode', { |
771 | 780 | */ |
772 | 781 | getObjectCallback : function(result,remoteEvent) |
773 | 782 | { |
774 | - console.log('getObjectCallback'); | |
775 | 783 | var t = remoteEvent.getTransaction(); |
776 | 784 | |
777 | 785 | if (result) { | ... | ... |