Commit 605e4bfd70efb4d58021cc895df6605d7df1aff7

Authored by Elena.Budnik
1 parent 31bcbc1e

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,8 +295,8 @@ Ext.define('amdaUI.ParamArgumentsUI', {
295 fieldset.collapse(); 295 fieldset.collapse();
296 } 296 }
297 else { 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 fieldset.items.items[ + (minValue > maxValue)].setValue(minValue); 300 fieldset.items.items[ + (minValue > maxValue)].setValue(minValue);
301 fieldset.items.items[ + (minValue < maxValue)].setValue(maxValue); 301 fieldset.items.items[ + (minValue < maxValue)].setValue(maxValue);
302 // if (indexesCombo.getValue() == "*") { 302 // if (indexesCombo.getValue() == "*") {