]> git.koha-community.org Git - koha.git/commit
Bug 35600: Prevent checkouts table to flicker
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Dec 2023 10:45:59 +0000 (11:45 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 20 Dec 2023 14:13:40 +0000 (15:13 +0100)
commit6c8beb2f2ed566dc2e6645d99f2ef0e80eaf726b
treedd9f4c6e2b874cd63ba4ce5bde53fb138c23520d
parentd6314d32246a7e967e78f1427c338a3e13823617
Bug 35600: Prevent checkouts table to flicker

The checkouts table is displayed in the DOM then hidden in JS, then we show it if the cookie is set.

This patch makes the table hidden by default, and show it if/when needed

Test plan:
Check an item out, see the checkouts list view
Play with "Always show checkouts automatically", refresh the page
=> UI should behave better than before this patch

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc
koha-tmpl/intranet-tmpl/prog/js/checkouts.js