Commit ef44d141022913bd25ecde90e5ae4eb9747e1244
1 parent
58780dd2
Exists in
master
and in
16 other branches
Fix bug with description field in plot module
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
js/app/views/PlotComponents/PlotTabContent.js
... | ... | @@ -189,7 +189,7 @@ Ext.define('amdaPlotComp.PlotTabContent', { |
189 | 189 | |
190 | 190 | updateUI : function() { |
191 | 191 | this.plotOutput.setObject(this.plotNode.get('object')); |
192 | - var descField = Ext.getCmp('plot_description'); | |
192 | + var descField = this.descriptionCase.items.items[0]; | |
193 | 193 | descField.setValue(this.plotNode.get('object').get('description')); |
194 | 194 | this.timeSelector.intervalSel.setInterval(this.plotNode.get('object').get('startDate'), this.plotNode.get('object').get('stopDate')); |
195 | 195 | this.timeSelector.intervalSel.updateStop(); |
... | ... | @@ -216,8 +216,7 @@ Ext.define('amdaPlotComp.PlotTabContent', { |
216 | 216 | this.plotElement = new amdaPlotComp.PlotElementPanel({flex: 12}); |
217 | 217 | this.treePlot = new amdaPlotComp.PlotTree({flex: 11, plotElementPanel: this.plotElement}); |
218 | 218 | this.plotOutput = new amdaPlotComp.PlotOutputForm({flex: 8, collapseDirection : 'bottom', collapsible : true }); |
219 | - this.descriptionCase = { | |
220 | - xtype:'fieldset', | |
219 | + this.descriptionCase = new Ext.form.FieldSet({ | |
221 | 220 | title:'Request description', |
222 | 221 | collapsible:true, |
223 | 222 | collapsed:true, |
... | ... | @@ -226,8 +225,8 @@ Ext.define('amdaPlotComp.PlotTabContent', { |
226 | 225 | border:false, |
227 | 226 | layout:'fit', |
228 | 227 | items:[{ xtype: 'descriptionfield', name: 'description', |
229 | - id:'plot_description',emptyText:'Description', fieldLabel: ''}] | |
230 | - }; | |
228 | + emptyText:'Description', fieldLabel: ''}] | |
229 | + }); | |
231 | 230 | |
232 | 231 | var treePanel = new Ext.form.Panel({ |
233 | 232 | flex: 1, |
... | ... |