Commit 31bcbc1e56153dbe9d059a74bbc92731296af083
1 parent
925f2ce0
Exists in
master
and in
109 other branches
parseFloat()
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
js/app/views/ParamArgumentsUI.js
... | ... | @@ -295,11 +295,10 @@ Ext.define('amdaUI.ParamArgumentsUI', { |
295 | 295 | fieldset.collapse(); |
296 | 296 | } |
297 | 297 | else { |
298 | - var minValue = relatedTable.channels[0].min; | |
299 | - var maxValue = relatedTable.channels[relatedTable.channels.length - 1].max; | |
298 | + var minValue = parseFloat(relatedTable.channels[0].min); | |
299 | + var maxValue = parseFloat(relatedTable.channels[relatedTable.channels.length - 1].max); | |
300 | 300 | fieldset.items.items[ + (minValue > maxValue)].setValue(minValue); |
301 | 301 | fieldset.items.items[ + (minValue < maxValue)].setValue(maxValue); |
302 | - | |
303 | 302 | // if (indexesCombo.getValue() == "*") { |
304 | 303 | // Ext.Object.each(relatedTable.channels, function (index, channel) { |
305 | 304 | // //ToDo | ... | ... |