Commit f43a0a5ed0fbad0e4e62135acb34512da2ee1d68

Authored by Benjamin Renard
1 parent 2e7079bb

Fix save statistics requests

js/app/controllers/StatisticsModule.js
... ... @@ -27,7 +27,7 @@ Ext.define('amdaDesktop.StatisticsModule', {
27 27 * @required
28 28 */
29 29 width : 550,
30   - height: 550,
  30 + height: 600,
31 31 uiType : 'panelStatistics',
32 32 helpTitle : 'Help on Statistics Module',
33 33 helpFile : 'statisticsHelp',
... ...
js/app/models/Statistic.js
... ... @@ -76,6 +76,7 @@ Ext.define('amdaModel.Statistic', {
76 76 values.type = this.get('type');
77 77 values.name = this.get('name');
78 78 values.timesrc = this.get('timesrc');
  79 + values.description = this.get('description');
79 80  
80 81 // if there's at least one parameter
81 82 values.parameter = [];
... ...
js/app/views/StatisticsUI.js
... ... @@ -34,6 +34,8 @@ Ext.define('amdaUI.StatisticsUI',
34 34 // load object into form
35 35 var basicForm = this.formPanel.items.items[1].getForm();
36 36 basicForm.loadRecord(this.object);
  37 + // set object's TTs into the timeselector
  38 + this.timeSelector.setTTTab(this.object.get('timeTables'));
37 39 // set parameters
38 40 this.paramGrid.reconfigure(this.object.params());
39 41 },
... ...