diff --git a/js/app/models/InteractiveNode.js b/js/app/models/InteractiveNode.js index 9abecf9..c31dbd8 100644 --- a/js/app/models/InteractiveNode.js +++ b/js/app/models/InteractiveNode.js @@ -279,25 +279,23 @@ Ext.define('amdaModel.InteractiveNode', { //TODO do we need this commission ??? // fix the modifications for object this.get('object').commit(); + // if ownerTree panel is not active - if (this.myGetOwnerTree().ownerCt.getActiveTab()!==this.myGetOwnerTree()) - { + if (this.myGetOwnerTree().ownerCt.getActiveTab()!==this.myGetOwnerTree()) { // set ownerTree panel as the active tab - to enable selection of this node his ownerTree must have a view this.myGetOwnerTree().ownerCt.setActiveTab(this.myGetOwnerTree()); } Ext.Msg.alert('Complete', 'New object '+this.get('object').get('name')+' has been created'); // expand the contextNode - this.get('contextNode').expand(false, function() - { + this.get('contextNode').expand(false, function() { if (!this.get('contextNode').findChild('text',this.get('text'))) { // create node in tree as child of contextNode this.get('contextNode').appendChild(this); } // select the new node this.myGetOwnerTree().getSelectionModel().select(this); - if (opt) - { + if (opt) { var scope = opt.scope ? opt.scope : this; if (opt.callback) opt.callback.call(scope,'create'); diff --git a/js/app/models/PlotNode.js b/js/app/models/PlotNode.js index 4251b86..f72d212 100644 --- a/js/app/models/PlotNode.js +++ b/js/app/models/PlotNode.js @@ -15,20 +15,15 @@ Ext.define('amdaModel.PlotNode', { extend: 'amdaModel.ExecutableNode', - - requires: [ - ], - + statics: { nodeType: 'request' }, constructor : function(config){ - this.callParent(arguments); this.set('moduleId',myDesktopApp.dynamicModules.plot.id); this.set('objectDataModel','amdaPlotObj.PlotRequestObject'); - this.set('ownerTreeId',amdaUI.ExplorerUI.OPE_TAB.TREE_ID); this.set('nodeType',this.self.nodeType); }, -- libgit2 0.21.2