From cd4220546eed34dea586abdf14401947f8bc127c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Mon, 24 Feb 2025 14:53:55 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20pr=C3=A9sentation=20colonne?= =?UTF-8?q?s=20non=20triables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- historique.html | 2 +- scripts.js | 4 ++++ style.css | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/historique.html b/historique.html index 7002f2f..f2a12a0 100644 --- a/historique.html +++ b/historique.html @@ -28,7 +28,7 @@ {{else}} {{:error message="Le matériel %s n'appartient à aucune catégorie"|args:$equipment.name}} {{/load}} -{{:admin_header title="Gestion des matériels" current="module_equipment"}} +{{:admin_header title="Gestion des matériels" custom_css="./style.css" current="module_equipment"}} {{if $_GET.current != null}} {{:assign current=$_GET.current}} diff --git a/scripts.js b/scripts.js index 487abe3..9a97993 100644 --- a/scripts.js +++ b/scripts.js @@ -18,6 +18,10 @@ function disableColumSort(liste) { anchor.removeAttribute("href"); anchor.removeAttribute("title"); anchor.removeChild(anchor.firstElementChild); + let headerClass = titles[i].getAttribute("class"); + if (headerClass == null) { headerClass = ""; } + headerClass += "nosort"; + titles[i].setAttribute("class", headerClass); } } } diff --git a/style.css b/style.css index df07e44..63d6ca6 100644 --- a/style.css +++ b/style.css @@ -26,3 +26,8 @@ margin-top : 0; margin-left : 0; } + +/* désactiver rétroaction pour colonnes non triables */ +table.list > thead td[class~=nosort] a:hover { + background-color : rgba(var(--gSecondColor), 0.); +}