Bugzilla – Attachment 192251 Details for
Bug 37402
Task scheduling fails if you don't use the correct time format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37402: (follow-up) Zero pad the hour automatically on blur
33f7847.patch (text/plain), 1.19 KB, created by
Kyle M Hall (khall)
on 2026-01-30 16:54:30 UTC
(
hide
)
Description:
Bug 37402: (follow-up) Zero pad the hour automatically on blur
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2026-01-30 16:54:30 UTC
Size:
1.19 KB
patch
obsolete
>From 33f7847ee227483029e8ee943f62a2852f548e6c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 30 Jan 2026 11:53:47 -0500 >Subject: [PATCH] Bug 37402: (follow-up) Zero pad the hour automatically on > blur > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/modules/tools/scheduler.tt | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt >index 5779a2a8a94..5e578c2a657 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt >@@ -122,6 +122,16 @@ > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/tools-menu.js") | $raw %] > [% INCLUDE 'calendar.inc' %] >+ <script> >+ $(document).ready(function () { >+ $("#starttime").on("blur", function () { >+ var time = $(this).val(); >+ if (/^\d:\d{2}$/.test(time)) { >+ $(this).val("0" + time); >+ } >+ }); >+ }); >+ </script> > [% END %] > > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.50.1 (Apple Git-155) >
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 37402
:
189897
|
189960
|
189961
|
192249
|
192250
| 192251