]> git.koha-community.org Git - koha.git/commit
Bug 34169: Use jQuery validator plugin to validate amounts
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 14 Jul 2023 15:42:46 +0000 (15:42 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 8 Aug 2023 06:05:46 +0000 (20:05 -1000)
commitebdf844a3250afe0e37f830c1a08d0221d2180c9
treeb33810f8405b26c7ade8b001261215dcb49239d6
parent03c5a75dfd6560eb30e0a6598d68ec015f6a073b
Bug 34169: Use jQuery validator plugin to validate amounts

This is a first step towards more consistency and possibly supporting
multiple input formats as well in the future. It allows us to mark all
input fields for monetary values, such as prices, replacement prices,
fees etc. with a class that is linked to a check for the 'number' format
in the jQuery Validator plugin.

This is the base patch that does nothing by itself, please see
test plan in second patch.

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 6b2308c17bd8add62e5cc7deb095ed28a2e2fcf4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/validator-strings.inc
koha-tmpl/intranet-tmpl/prog/js/staff-global.js