Merge "fix the bug of checkSpinnerValue"

This commit is contained in:
Zuul 2018-11-21 22:01:02 +00:00 committed by Gerrit Code Review
commit f535687c9f

@ -365,7 +365,9 @@ horizon.forms.getSpinnerValue = function(val, defaultVal) {
return isNaN(val) ? defaultVal : val;
};
horizon.forms.checkSpinnerValue = function($input) {
horizon.forms.checkSpinnerValue = function($inputs) {
$inputs.each(function (index, input) {
var $input = $(input);
var val = $input.attr('value');
var max = horizon.forms.getSpinnerValue($input.attr('max'), Number.MAX_SAFE_INTEGER);
var min = horizon.forms.getSpinnerValue($input.attr('min'), 0);
@ -384,6 +386,7 @@ horizon.forms.checkSpinnerValue = function($input) {
// Disable if we've hit the max
$up.attr('disabled', true);
}
});
};
horizon.forms.init_themable_spinner = function ($elem) {