Merge pull request 'Title EDT' (#834) from lehmann/ScoDoc-Front:Title-EDT into master

Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/834
This commit is contained in:
Emmanuel Viennet 2023-12-29 12:55:55 +01:00
commit 2b9b459106

View File

@ -259,7 +259,7 @@
<span class="editing calendarEdit" title="${title_EDT}">📅</span>
<span class="editing suppr">❌</span>`;
if (title_EDT) {
if (groupe.edt_id) {
div.querySelector(".calendarEdit").classList.add("actif");
}
@ -801,7 +801,7 @@
let btnGroupe = document.querySelector(`#zonePartitions .groupes [data-idgroupe="${idGroupe}"]`);
btnGroupe.dataset.idedt = id_EDT;
btnGroupe.querySelector(".calendarEdit").title = id_EDT || "";
btnGroupe.querySelector(".calendarEdit").title = `Identifiant EDT: ${id_EDT || this.parentElement.parentElement.querySelector("span").innerText}`;
if (id_EDT) {
btnGroupe.querySelector(".calendarEdit").classList.add("actif");