diff --git a/js/app/views/ParamArgumentsUI.js b/js/app/views/ParamArgumentsUI.js index 384d942..445e481 100644 --- a/js/app/views/ParamArgumentsUI.js +++ b/js/app/views/ParamArgumentsUI.js @@ -295,11 +295,10 @@ Ext.define('amdaUI.ParamArgumentsUI', { fieldset.collapse(); } else { - var minValue = relatedTable.channels[0].min; - var maxValue = relatedTable.channels[relatedTable.channels.length - 1].max; + var minValue = parseFloat(relatedTable.channels[0].min); + var maxValue = parseFloat(relatedTable.channels[relatedTable.channels.length - 1].max); fieldset.items.items[ + (minValue > maxValue)].setValue(minValue); fieldset.items.items[ + (minValue < maxValue)].setValue(maxValue); - // if (indexesCombo.getValue() == "*") { // Ext.Object.each(relatedTable.channels, function (index, channel) { // //ToDo -- libgit2 0.21.2