Bugzilla – Attachment 128729 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), 1019 bytes, created by
Jonathan Druart
on 2021-12-20 10:45:17 UTC
(
hide
)
Description:
Bug 29552: Disable today for dates in the future
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-12-20 10:45:17 UTC
Size:
1019 bytes
patch
obsolete
>From 25fd07daa40316e24a5dea2698246b2d66193d8b 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 > >--- > 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 f7e78db23ba..1a29e4cbad5 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.25.1
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