mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 15:21:22 +02:00
Fix lint warnings: arrow functions in admin-acces.js, duplicate gap in admin.css, biome formatting
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user