mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 15:21:22 +02:00
acces.php: remove Mot de passe column, add key icon copy button, reorder actions, switch URL icon to link-simple; fix dialog functions not on window; fix archive: move form into dialog (native submit); add caret icon to archived links details
This commit is contained in:
@@ -74,38 +74,29 @@ function _copyTextToClipboard(text) {
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
function _openEditDialog(id, name, _hasPassword, expiresVal) {
|
||||
window.openEditDialog = function (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();
|
||||
}
|
||||
|
||||
function _openApproveDialog(requestId) {
|
||||
window.openApproveDialog = function (requestId) {
|
||||
document.getElementById("approve-request-id").value = requestId;
|
||||
document.getElementById("approve-dialog").showModal();
|
||||
}
|
||||
|
||||
function _openRejectDialog(requestId) {
|
||||
window.openRejectDialog = function (requestId) {
|
||||
document.getElementById("reject-request-id").value = requestId;
|
||||
document.getElementById("reject-dialog").showModal();
|
||||
}
|
||||
|
||||
var _pendingArchiveLinkId = null;
|
||||
|
||||
function _openArchiveLinkDialog(id) {
|
||||
_pendingArchiveLinkId = id;
|
||||
window.openArchiveLinkDialog = function (id) {
|
||||
document.getElementById("archive-link-id").value = id;
|
||||
document.getElementById("archive-link-dialog").showModal();
|
||||
}
|
||||
|
||||
function _executeArchiveLink() {
|
||||
var form = document.getElementById(
|
||||
`archive-link-form-${_pendingArchiveLinkId}`,
|
||||
);
|
||||
if (form) form.submit();
|
||||
}
|
||||
|
||||
function _openDeleteArchivedLinkDialog(id) {
|
||||
window.openDeleteArchivedLinkDialog = function (id) {
|
||||
document.getElementById("delete-archived-link-id").value = id;
|
||||
document.getElementById("delete-archived-link-dialog").showModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user