Fix lint warnings: arrow functions in admin-acces.js, duplicate gap in admin.css, biome formatting

This commit is contained in:
Pontoporeia
2026-07-08 13:50:03 +02:00
parent 402799a412
commit 033ea90684
6 changed files with 1452 additions and 1445 deletions
+10 -10
View File
@@ -74,29 +74,29 @@ function _copyTextToClipboard(text) {
.catch(() => {});
}
window.openEditDialog = function (id, name, _hasPassword, expiresVal) {
window.openEditDialog = (id, name, _hasPassword, expiresVal) => {
document.getElementById("edit-link-id").value = id;
document.getElementById("edit-name").value = name || "";
document.getElementById("edit-expires").value = expiresVal || "";
document.getElementById("edit-dialog").showModal();
}
};
window.openApproveDialog = function (requestId) {
window.openApproveDialog = (requestId) => {
document.getElementById("approve-request-id").value = requestId;
document.getElementById("approve-dialog").showModal();
}
};
window.openRejectDialog = function (requestId) {
window.openRejectDialog = (requestId) => {
document.getElementById("reject-request-id").value = requestId;
document.getElementById("reject-dialog").showModal();
}
};
window.openArchiveLinkDialog = function (id) {
window.openArchiveLinkDialog = (id) => {
document.getElementById("archive-link-id").value = id;
document.getElementById("archive-link-dialog").showModal();
}
};
window.openDeleteArchivedLinkDialog = function (id) {
window.openDeleteArchivedLinkDialog = (id) => {
document.getElementById("delete-archived-link-id").value = id;
document.getElementById("delete-archived-link-dialog").showModal();
}
};
@@ -66,7 +66,7 @@
fieldset.remove();
reindexGroups();
// Trigger htmx autosave so deletion is persisted
form.dispatchEvent(new Event('change', { bubbles: true }));
form.dispatchEvent(new Event("change", { bubbles: true }));
}
});
}