fix the bug of checkSpinnerValue
The user setting page sets the "Items Per Page" minimum or maximum value,
which affects the display of "Log Lines Per Instance"
Closes-Bug:
@@ -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) {
