diff --git a/js/app/views/PlotComponents/PlotTabContent.js b/js/app/views/PlotComponents/PlotTabContent.js index edce35d..db3dcf6 100644 --- a/js/app/views/PlotComponents/PlotTabContent.js +++ b/js/app/views/PlotComponents/PlotTabContent.js @@ -189,7 +189,7 @@ Ext.define('amdaPlotComp.PlotTabContent', { updateUI : function() { this.plotOutput.setObject(this.plotNode.get('object')); - var descField = Ext.getCmp('plot_description'); + var descField = this.descriptionCase.items.items[0]; descField.setValue(this.plotNode.get('object').get('description')); this.timeSelector.intervalSel.setInterval(this.plotNode.get('object').get('startDate'), this.plotNode.get('object').get('stopDate')); this.timeSelector.intervalSel.updateStop(); @@ -216,8 +216,7 @@ Ext.define('amdaPlotComp.PlotTabContent', { this.plotElement = new amdaPlotComp.PlotElementPanel({flex: 12}); this.treePlot = new amdaPlotComp.PlotTree({flex: 11, plotElementPanel: this.plotElement}); this.plotOutput = new amdaPlotComp.PlotOutputForm({flex: 8, collapseDirection : 'bottom', collapsible : true }); - this.descriptionCase = { - xtype:'fieldset', + this.descriptionCase = new Ext.form.FieldSet({ title:'Request description', collapsible:true, collapsed:true, @@ -226,8 +225,8 @@ Ext.define('amdaPlotComp.PlotTabContent', { border:false, layout:'fit', items:[{ xtype: 'descriptionfield', name: 'description', - id:'plot_description',emptyText:'Description', fieldLabel: ''}] - }; + emptyText:'Description', fieldLabel: ''}] + }); var treePanel = new Ext.form.Panel({ flex: 1, -- libgit2 0.21.2