]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 4 Jan 2024 20:50:55 +0000 (20:50 +0000)
commit74bda07f03620cfbc3e1eb15e664561343d9c1f4
tree2c9c18e4e4632384bacb1e2dcf8753eed2ac6a98
parent993931eb9e63805b0737bc3411b7628fb871742f
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>
(cherry picked from commit 6c8beb2f2ed566dc2e6645d99f2ef0e80eaf726b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 703ee190d94326538d8121563e5dee76aa5b2950)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc
koha-tmpl/intranet-tmpl/prog/js/checkouts.js