]> git.koha-community.org Git - koha.git/commit
Bug 29735: Remove flatpickr init from categories.js and holds.js
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Dec 2021 11:02:45 +0000 (12:02 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 14 Jan 2022 02:37:33 +0000 (16:37 -1000)
commit093cffe7c120b2586a40140e35bafa5c4d50f968
tree514cfff1fe98df5b606e738c26b09d6a17048848
parent14660a6f293633b588caced1aa6a2937d7142ec6
Bug 29735: Remove flatpickr init from categories.js and holds.js

Same as bug 29394, we want the flatpickr instanciations be done at the
same place, from calendar.inc. That way they will all behave
identically.

Test plan:
Edit a patron category and confirm that the "until date" calendar has
the "yesterday" and "today" dates disabled

Place a hold on an item, go to the patron detail page, click the "holds"
tab, suspend.
That should trigger a modal that will display a calendar with
"yesterday" and "today" dates disabled

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/intranet-tmpl/prog/js/categories.js
koha-tmpl/intranet-tmpl/prog/js/holds.js