Commit f5aaaec98c885914cc542c5115d40efad6b8db89

Authored by Elena.Budnik
1 parent 4bece920

no Download from Plot Node

Showing 2 changed files with 3 additions and 25 deletions   Show diff stats
generic_data/operations.json
1 1 {"nodes": [
2   - {"nodeType" : "request", "text" : "Plot / Download", "id" : "request-treeRootNode"} ,
  2 + {"nodeType" : "request", "text" : "Plot", "id" : "request-treeRootNode"} ,
3 3 {"nodeType" : "condition","text" : "Data Mining","id" : "condition-treeRootNode" }
4 4 ]}
... ...
js/app/models/PlotNode.js
... ... @@ -5,12 +5,6 @@
5 5 * @extends amdaModel.ExecutableNode
6 6 * @brief Basic Model of Node corresponding to a plot request
7 7 * @author Benjamin Renard
8   - * @version $Id: $
9   - * @todo
10   - *******************************************************************************
11   - * FT Id : Date : Name - Description
12   - *******************************************************************************
13   - * : :21/08/2015: BRE - file creation
14 8 */
15 9  
16 10 Ext.define('amdaModel.PlotNode', {
... ... @@ -45,9 +39,6 @@ Ext.define('amdaModel.PlotNode', {
45 39 fnId : 'leaf-editPlot',
46 40 text : 'Plot By Request'
47 41 }, {
48   - fnId : 'leaf-editDownload',
49   - text : 'Download By Request'
50   - }, {
51 42 fnId : 'leaf-renameNode',
52 43 text : 'Rename Request'
53 44 }, {
... ... @@ -77,7 +68,7 @@ Ext.define('amdaModel.PlotNode', {
77 68 },
78 69  
79 70 onMenuItemClick : function(menu,item,event) {
80   - // fnId parsing :
  71 +
81 72 var fnId = Ext.util.Format.substr(item.fnId, 5, item.fnId.length);
82 73  
83 74 switch (fnId) {
... ... @@ -97,19 +88,6 @@ Ext.define('amdaModel.PlotNode', {
97 88 case 'editPlot':
98 89 this.editLeaf();
99 90 break;
100   -
101   - case 'editDownload':
102   - amdaModel.DownloadNode.set('realLinkedNode',this);
103   -
104   - if (!this.get('object')){
105   - AmdaAction.getObject(this.get('id'), this.get('nodeType'), amdaModel.DownloadNode.getObjectCallback, this);
106   - }
107   - else {
108   - var downObject = amdaModel.DownloadNode.decodeObject();
109   - amdaModel.DownloadNode.set('object',Ext.create('amdaModel.Download',downObject));
110   - amdaModel.DownloadNode.editInModule();
111   - }
112   - break;
113 91  
114 92 case 'deleteMulti':
115 93 this.deleteMulti();
... ... @@ -117,7 +95,7 @@ Ext.define('amdaModel.PlotNode', {
117 95  
118 96 default:
119 97 break;
120   - } // switch end
  98 + }
121 99 }
122 100  
123 101 });
... ...