Commit 663f63953705c96167f61ed5e8ce78f7a1703321

Authored by Elena.Budnik
1 parent e6065c11

nettoyage

js/app/models/InteractiveNode.js
... ... @@ -279,25 +279,23 @@ Ext.define('amdaModel.InteractiveNode', {
279 279 //TODO do we need this commission ???
280 280 // fix the modifications for object
281 281 this.get('object').commit();
  282 +
282 283 // if ownerTree panel is not active
283   - if (this.myGetOwnerTree().ownerCt.getActiveTab()!==this.myGetOwnerTree())
284   - {
  284 + if (this.myGetOwnerTree().ownerCt.getActiveTab()!==this.myGetOwnerTree()) {
285 285 // set ownerTree panel as the active tab - to enable selection of this node his ownerTree must have a view
286 286 this.myGetOwnerTree().ownerCt.setActiveTab(this.myGetOwnerTree());
287 287 }
288 288  
289 289 Ext.Msg.alert('Complete', 'New object '+this.get('object').get('name')+' has been created');
290 290 // expand the contextNode
291   - this.get('contextNode').expand(false, function()
292   - {
  291 + this.get('contextNode').expand(false, function() {
293 292 if (!this.get('contextNode').findChild('text',this.get('text'))) {
294 293 // create node in tree as child of contextNode
295 294 this.get('contextNode').appendChild(this);
296 295 }
297 296 // select the new node
298 297 this.myGetOwnerTree().getSelectionModel().select(this);
299   - if (opt)
300   - {
  298 + if (opt) {
301 299 var scope = opt.scope ? opt.scope : this;
302 300 if (opt.callback)
303 301 opt.callback.call(scope,'create');
... ...
js/app/models/PlotNode.js
... ... @@ -15,20 +15,15 @@
15 15  
16 16 Ext.define('amdaModel.PlotNode', {
17 17 extend: 'amdaModel.ExecutableNode',
18   -
19   - requires: [
20   - ],
21   -
  18 +
22 19 statics: {
23 20 nodeType: 'request'
24 21 },
25 22  
26 23 constructor : function(config){
27   -
28 24 this.callParent(arguments);
29 25 this.set('moduleId',myDesktopApp.dynamicModules.plot.id);
30 26 this.set('objectDataModel','amdaPlotObj.PlotRequestObject');
31   - this.set('ownerTreeId',amdaUI.ExplorerUI.OPE_TAB.TREE_ID);
32 27 this.set('nodeType',this.self.nodeType);
33 28 },
34 29  
... ...