Commit 605e4bfd70efb4d58021cc895df6605d7df1aff7
1 parent
31bcbc1e
Exists in
master
and in
109 other branches
parseInt()
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
js/app/views/ParamArgumentsUI.js
... | ... | @@ -295,8 +295,8 @@ Ext.define('amdaUI.ParamArgumentsUI', { |
295 | 295 | fieldset.collapse(); |
296 | 296 | } |
297 | 297 | else { |
298 | - var minValue = parseFloat(relatedTable.channels[0].min); | |
299 | - var maxValue = parseFloat(relatedTable.channels[relatedTable.channels.length - 1].max); | |
298 | + var minValue = parseInt(relatedTable.channels[0].min); | |
299 | + var maxValue = parseInt(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 | 302 | // if (indexesCombo.getValue() == "*") { | ... | ... |