Commit 2719c3a25a08b36da0001e0129b17ed6fb808c29
Exists in
master
and in
72 other branches
Merge branch 'develop' into amdadev
Showing
3 changed files
with
4 additions
and
38 deletions
Show diff stats
js/app/controllers/PlotModule.js
... | ... | @@ -216,20 +216,6 @@ Ext.define('amdaDesktop.PlotModule', { |
216 | 216 | }); |
217 | 217 | } |
218 | 218 | }, |
219 | - addTT :function(ttName, ttId){ | |
220 | - var me = this; | |
221 | - var desktop = this.app.getDesktop(); | |
222 | - var win = desktop.getWindow(this.id); | |
223 | - if (win) { | |
224 | - me.getUiContent().addTT(ttName, ttId); | |
225 | - win.show(); | |
226 | - } | |
227 | - else { | |
228 | - this.createWindow(function () { | |
229 | - me.getUiContent().addTT(ttName, ttId); | |
230 | - }); | |
231 | - } | |
232 | - }, | |
233 | 219 | editPlot : function(plotNode) { |
234 | 220 | var me = this; |
235 | 221 | var desktop = this.app.getDesktop(); | ... | ... |
js/app/models/InteractiveNode.js
... | ... | @@ -463,7 +463,7 @@ Ext.define('amdaModel.InteractiveNode', { |
463 | 463 | this.generateTT(this); |
464 | 464 | break; |
465 | 465 | case 'plotTT': |
466 | - this.ttPlot(this); | |
466 | + this.createPlot(this); | |
467 | 467 | break; |
468 | 468 | default: |
469 | 469 | break; |
... | ... | @@ -817,12 +817,5 @@ Ext.define('amdaModel.InteractiveNode', { |
817 | 817 | timeTabNode.editInModule(); |
818 | 818 | }); |
819 | 819 | }, |
820 | - ttPlot : function(node) { | |
821 | - // download Module | |
822 | - if (node.get('disable')) return; | |
823 | - myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.plot.id, true, function (module) { | |
824 | - module.addTT(node.get('text'), node.get('id')); | |
825 | - }); | |
826 | - }, | |
827 | 820 | |
828 | 821 | }); | ... | ... |
js/app/models/TimeTableNode.js
... | ... | @@ -102,8 +102,9 @@ Ext.define('amdaModel.TimeTableNode', { |
102 | 102 | case 'download': |
103 | 103 | this.ttDownload(); |
104 | 104 | break; |
105 | + | |
105 | 106 | case 'plot': |
106 | - this.ttPlot(this); | |
107 | + this.createPlot(this); | |
107 | 108 | break; |
108 | 109 | case 'operations': |
109 | 110 | this.ttOperations(); |
... | ... | @@ -146,15 +147,7 @@ Ext.define('amdaModel.TimeTableNode', { |
146 | 147 | var uidownload = module.getUiContent(); |
147 | 148 | uidownload.addTTdownload(me.get('text'), me.get('id')); |
148 | 149 | }); |
149 | - }, | |
150 | - ttPlot : function(node) { | |
151 | - // download Module | |
152 | - if (node.get('disable')) return; | |
153 | - myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.plot.id, true, function (module) { | |
154 | - module.addTT(node.get('text'), node.get('id')); | |
155 | - }); | |
156 | - }, | |
157 | - | |
150 | + }, | |
158 | 151 | ttOperations : function() { |
159 | 152 | var me = this; |
160 | 153 | myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.tt_op.id, true, function (module) { |
... | ... | @@ -175,12 +168,6 @@ Ext.define('amdaModel.TimeTableNode', { |
175 | 168 | item.ttDownload(); |
176 | 169 | }) |
177 | 170 | }, |
178 | - plotMulti: function(){ | |
179 | - var selection = this.myGetOwnerTree().getSelectionModel().selected.items; | |
180 | - Ext.Array.each(selection,function(item,index,allItems){ | |
181 | - item.ttPlot(); | |
182 | - }) | |
183 | - }, | |
184 | 171 | |
185 | 172 | operationsMulti: function(){ |
186 | 173 | var selection = this.myGetOwnerTree().getSelectionModel().selected.items; | ... | ... |