Amélioration présentation colonnes non triables
This commit is contained in:
parent
849dcf00c9
commit
cd4220546e
3 changed files with 10 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:error message="Le matériel %s n'appartient à aucune catégorie"|args:$equipment.name}}
|
{{:error message="Le matériel %s n'appartient à aucune catégorie"|args:$equipment.name}}
|
||||||
{{/load}}
|
{{/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}}
|
{{if $_GET.current != null}}
|
||||||
{{:assign current=$_GET.current}}
|
{{:assign current=$_GET.current}}
|
||||||
|
|
|
@ -18,6 +18,10 @@ function disableColumSort(liste) {
|
||||||
anchor.removeAttribute("href");
|
anchor.removeAttribute("href");
|
||||||
anchor.removeAttribute("title");
|
anchor.removeAttribute("title");
|
||||||
anchor.removeChild(anchor.firstElementChild);
|
anchor.removeChild(anchor.firstElementChild);
|
||||||
|
let headerClass = titles[i].getAttribute("class");
|
||||||
|
if (headerClass == null) { headerClass = ""; }
|
||||||
|
headerClass += "nosort";
|
||||||
|
titles[i].setAttribute("class", headerClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,3 +26,8 @@
|
||||||
margin-top : 0;
|
margin-top : 0;
|
||||||
margin-left : 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.);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue