From 90553835344cd7864581cb4bcea31ec3742f30b9 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Mon, 29 Jan 2024 15:51:47 +0100 Subject: [PATCH] Bug 35087: alternative patch to display validation Same test plan as for the other patch, but here validation impacts the js asset --- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index 36f5014..16ccb42 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -119,6 +119,8 @@ $(document).ready(function() { number: true }); + jQuery.validator.addMethod("decimal_rate", jQuery.validator.methods.number, __("Please add rate in valid format: 0.00")); + jQuery.validator.addClassRules("rate", { decimal_rate: true }); -- 2.30.2