Commit 134b0d677df356c9e2a37ac37e537e5737bcf3ad

Authored by Benjamin Renard
1 parent a9285c23

Fix typo (#7238)

Showing 1 changed file with 3 additions and 11 deletions   Show diff stats
js/app/models/InteractiveNode.js
... ... @@ -296,7 +296,7 @@ Ext.define('amdaModel.InteractiveNode', {
296 296 // set ownerTree panel as the active tab - to enable selection of this node his ownerTree must have a view
297 297 this.myGetOwnerTree().ownerCt.setActiveTab(this.myGetOwnerTree());
298 298 }
299   - if(opt.notDisplayMsg){
  299 + if(opt && opt.notDisplayMsg){
300 300 //do nothing
301 301 }else{
302 302 Ext.Msg.alert('Complete', 'New object '+this.get('object').get('name')+' has been created');
... ... @@ -459,16 +459,7 @@ 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   - 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);
  462 + module.addParameterToPlot(node);
472 463 });
473 464 },
474 465  
... ... @@ -780,6 +771,7 @@ Ext.define('amdaModel.InteractiveNode', {
780 771 */
781 772 getObjectCallback : function(result,remoteEvent)
782 773 {
  774 + console.log('getObjectCallback');
783 775 var t = remoteEvent.getTransaction();
784 776  
785 777 if (result) {
... ...