Bugzilla – Attachment 128811 Details for
Bug 29552
flatpickr quick shortcuts should be 'Disabled' for invalid dates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29552: Disable today for dates in the future
Bug-29552-Disable-today-for-dates-in-the-future.patch (text/plain), 1.05 KB, created by
Katrin Fischer
on 2021-12-20 23:31:36 UTC
(
hide
)
Description:
Bug 29552: Disable today for dates in the future
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-12-20 23:31:36 UTC
Size:
1.05 KB
patch
obsolete
>From c274b75e7d2ad7325da63ec5b8e95eb9e6ae4608 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 20 Dec 2021 11:44:24 +0100 >Subject: [PATCH] Bug 29552: Disable today for dates in the future > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >index f7e78db23b..1a29e4cbad 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >@@ -145,6 +145,7 @@ > options['minDate'] = new Date().fp_incr(1); > } > disable_buttons.push(0); /* Yesterday */ >+ disable_buttons.push(1); /* Today */ > } > if( $(this).data("flatpickr-pastinclusive") === true ) { > options['maxDate'] = new Date(); /* Not today or hh:mm will be 00:00 */ >-- >2.11.0
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 29552
:
127954
|
128221
|
128222
|
128510
|
128511
|
128512
|
128729
|
128806
|
128807
|
128808
|
128809
|
128810
| 128811