Commit 304d091a1c2642da68e18ed425eae98d90481452
1 parent
af94e42d
Exists in
master
and in
52 other branches
Minor fix
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
js/app/views/PlotComponents/PlotZoomPlug.js
... | ... | @@ -187,7 +187,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { |
187 | 187 | switch (zoomType) { |
188 | 188 | case 'timeAxis': |
189 | 189 | if (this.isPlotFunction) { |
190 | - const title = "Appliquer une Transformation"; | |
190 | + const title = "Apply a Function on Interval"; | |
191 | 191 | this.win.setTitle(title + '-Panel Id: ' + panelId); |
192 | 192 | } else { |
193 | 193 | this.win.setTitle('Zoom on time axis & Interval selection - Panel Id : ' + panelId); |
... | ... |
js/app/views/PlotComponents/plotFunction/ParamField.js
... | ... | @@ -116,9 +116,9 @@ Ext.define('amdaPlotComp.plotFunction.ParamField', { |
116 | 116 | setValues: function (startTime, stopTime) { |
117 | 117 | for (p in this.params) { |
118 | 118 | let param = this.params[p]; |
119 | - const nb_points = (stopTime - startTime) / param.MinSampling; | |
119 | + const nb_points = (stopTime.getTime() - startTime.getTime()) / (1000. * param.MinSampling); | |
120 | 120 | const ui_item = this.parent.findField(this.label_number_field1 + param.id); |
121 | 121 | ui_item.setValue(parseInt(nb_points)); |
122 | 122 | } |
123 | 123 | } |
124 | -}); | |
125 | 124 | \ No newline at end of file |
125 | +}); | |
... | ... |