WebUI: change validator of page size settings

Previously, this configuration field was validated by integer_validator
which only checks that the input is number.
Now new positive_integer_validator can also check that
the inputed number positive.

https://pagure.io/freeipa/issue/6980

Reviewed-By: Felipe Volpone <felipevolpone@gmail.com>
This commit is contained in:
Pavel Vomacka 2017-07-11 10:49:46 +02:00 committed by Martin Babinsky
parent 3cac851498
commit cfa157c1e5

View File

@ -312,7 +312,7 @@ define([
$type: 'text',
name: 'pagination_size',
label: '@i18n:customization.table_pagination',
validators: ['integer']
validators: ['positive_integer']
}
]
});