Bugzilla – Attachment 162066 Details for
Bug 35087
Discount rate should only allow valid input formats
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35087: alternative patch to display validation
Bug-35087-alternative-patch-to-display-validation.patch (text/plain), 1.04 KB, created by
PTFS Europe Sandboxes
on 2024-02-12 17:49:23 UTC
(
hide
)
Description:
Bug 35087: alternative patch to display validation
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2024-02-12 17:49:23 UTC
Size:
1.04 KB
patch
obsolete
>From 0f9e59bcaed33caacadff4f65e1db725b5ca613f Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >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 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Sonia <sonia.bouis@univ-lyon3.fr> >--- > 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 36f50149f7..16ccb42df6 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35087
:
157302
|
157626
|
158921
|
159831
|
161128
|
161225
|
161237
|
161596
|
161597
|
161598
|
161704
|
161705
|
161706
|
162065
|
162066
|
162067
|
164739
|
164740
|
167746
|
167747
|
171197
|
171198
|
171594
|
171595