[GIT] Evergreen ILS branch rel_3_14 updated. 4a830327a8f4ca621c49ba8dd29dccf7fc8f614d

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, rel_3_14 has been updated via 4a830327a8f4ca621c49ba8dd29dccf7fc8f614d (commit) from 5564d664fbb7f34b53c25a91b117b019be44761a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 4a830327a8f4ca621c49ba8dd29dccf7fc8f614d Author: Steven Mayo <smayo@georgialibraries.org> Date: Tue Sep 17 17:42:10 2024 -0400 LP2080887 Dark Mode: White Flash Betweeb Ang/AngJS Adds a backup script changing color mode from local storage to the heads of Angular and AngularJS. Happens early enough to not make a flash. Signed-off-by: Steven Mayo <smayo@georgialibraries.org> Signed-off-by: Susan Morrison <smorrison@georgialibraries.org> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> diff --git a/Open-ILS/src/eg2/src/index.html b/Open-ILS/src/eg2/src/index.html index 9ecb4c51fb..18589d3137 100644 --- a/Open-ILS/src/eg2/src/index.html +++ b/Open-ILS/src/eg2/src/index.html @@ -6,6 +6,12 @@ <base href="/eg2"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> + <script> + const colormode = localStorage.getItem('eg.ui.general.colormode'); + if (colormode) { + document.documentElement.setAttribute('data-bs-theme', colormode.replaceAll("\"", "")); + } + </script> </head> <body> <eg-root></eg-root> diff --git a/Open-ILS/src/templates/staff/base.tt2 b/Open-ILS/src/templates/staff/base.tt2 index 682916c167..7f2fb1b77c 100644 --- a/Open-ILS/src/templates/staff/base.tt2 +++ b/Open-ILS/src/templates/staff/base.tt2 @@ -34,6 +34,12 @@ <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/dark.css" /> <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/nav.css" /> <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/grid.css" /> + <script> + const colormode = localStorage.getItem('eg.ui.general.colormode'); + if (colormode) { + document.documentElement.setAttribute('data-bs-theme', colormode.replaceAll("\"", "")); + } + </script> </head> <body> ----------------------------------------------------------------------- Summary of changes: Open-ILS/src/eg2/src/index.html | 6 ++++++ Open-ILS/src/templates/staff/base.tt2 | 6 ++++++ 2 files changed, 12 insertions(+) hooks/post-receive -- Evergreen ILS
participants (1)
-
Git User