Bugzilla – Attachment 161598 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), 960 bytes, created by
Thibaud Guillot (thibaud_g)
on 2024-01-29 14:57:03 UTC
(
hide
)
Description:
Bug 35087: alternative patch to display validation
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2024-01-29 14:57:03 UTC
Size:
960 bytes
patch
obsolete
>From 90553835344cd7864581cb4bcea31ec3742f30b9 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 >--- > 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
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