Bug 19249: Fix date inputs on patron quick add form
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 May 2023 14:15:28 +0000 (16:15 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 11 May 2023 11:21:38 +0000 (12:21 +0100)
commit4a4ad585f7e2cf9c624c7efe0d069431ac11cea6
tree53e306a9ce79817d219b820f8a057cb251670164
parentba65389f1ea3f9b576ea2828c2abf5d9fd504794
Bug 19249: Fix date inputs on patron quick add form

This patch create a "apply_flatpickr" JS function to make the code
reusable from the template, where we loop over the date inputs to
reinstantiate flatpickr.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 28dc7f1f02b0515648b76abd71eaa142f5f52396)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt