Commit a8c008f191ca739a557c7b1ba821100b0848e7b4
1 parent
fbadedf4
Exists in
master
and in
103 other branches
Fix contextual menu
Showing
3 changed files
with
9 additions
and
9 deletions
Show diff stats
js/app/controllers/PlotModule.js
@@ -208,12 +208,5 @@ Ext.define('amdaDesktop.PlotModule', { | @@ -208,12 +208,5 @@ Ext.define('amdaDesktop.PlotModule', { | ||
208 | getWindowResult: function(winResultId){ | 208 | getWindowResult: function(winResultId){ |
209 | if (!this.plotResultWindowsManager.get(winResultId)) return null; | 209 | if (!this.plotResultWindowsManager.get(winResultId)) return null; |
210 | return this.plotResultWindowsManager.get(winResultId); | 210 | return this.plotResultWindowsManager.get(winResultId); |
211 | - }, | ||
212 | - | ||
213 | - forceTabSelection: function(tabId) { | ||
214 | - var uiContent = this.getUiContent(); | ||
215 | - if (uiContent != null) { | ||
216 | - uiContent.forceActiveTab(tabId); | ||
217 | - } | ||
218 | } | 211 | } |
219 | }); | 212 | }); |
js/app/models/AmdaNode.js
@@ -136,7 +136,12 @@ Ext.define('amdaModel.AmdaNode', { | @@ -136,7 +136,12 @@ Ext.define('amdaModel.AmdaNode', { | ||
136 | } | 136 | } |
137 | } | 137 | } |
138 | else if (this.get('nodeType') == 'request') { | 138 | else if (this.get('nodeType') == 'request') { |
139 | - itemKind = amdaUI.ExplorerUI.ITEM_KIND_LEAF; | 139 | + if (this.get('tabs') && (this.get('tabs').length > 0)) { |
140 | + itemKind = amdaUI.ExplorerUI.ITEM_KIND_LEAF; | ||
141 | + } | ||
142 | + else { | ||
143 | + itemKind = amdaUI.ExplorerUI.ITEM_KIND_DIRE; | ||
144 | + } | ||
140 | } | 145 | } |
141 | else if (this.get('isParameter') && this.get('nodeType' ) != 'derivedParam' ) { | 146 | else if (this.get('isParameter') && this.get('nodeType' ) != 'derivedParam' ) { |
142 | itemKind = amdaUI.ExplorerUI.ITEM_KIND_PARA; | 147 | itemKind = amdaUI.ExplorerUI.ITEM_KIND_PARA; |
js/app/models/PlotNode.js
@@ -27,7 +27,9 @@ Ext.define('amdaModel.PlotNode', { | @@ -27,7 +27,9 @@ Ext.define('amdaModel.PlotNode', { | ||
27 | this.set('moduleId',myDesktopApp.dynamicModules.plot.id); | 27 | this.set('moduleId',myDesktopApp.dynamicModules.plot.id); |
28 | this.set('objectDataModel','amdaPlotObj.PlotRequestObject'); | 28 | this.set('objectDataModel','amdaPlotObj.PlotRequestObject'); |
29 | this.set('nodeType',this.self.nodeType); | 29 | this.set('nodeType',this.self.nodeType); |
30 | - this.updateTabs(this.get('tabs')); | 30 | + if (this.get('leaf')) { |
31 | + this.updateTabs(this.get('tabs')); | ||
32 | + } | ||
31 | }, | 33 | }, |
32 | 34 | ||
33 | updateTabs : function(tabs) { | 35 | updateTabs : function(tabs) { |