From 74bda07f03620cfbc3e1eb15e664561343d9c1f4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 19 Dec 2023 11:45:59 +0100 Subject: [PATCH] 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 Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 6c8beb2f2ed566dc2e6645d99f2ef0e80eaf726b) Signed-off-by: Fridolin Somers (cherry picked from commit 703ee190d94326538d8121563e5dee76aa5b2950) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc | 4 ++-- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc index f4343e0791..8374748c81 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc @@ -9,7 +9,7 @@

- +
@@ -42,7 +42,7 @@ -
+