diff options
author | Minteck <contact@minteck.org> | 2022-07-11 18:54:20 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-11 18:54:20 +0200 |
commit | f2824f51f8ed407a8633ba968d35d56ea6a36f49 (patch) | |
tree | db0c625ccd8ae4ada52f4e30956a9627270dec31 /assets/misc.js | |
parent | 5abe8cba55965f70e07e1163239bcc9d797c864a (diff) | |
download | bits-client-mane.tar.gz bits-client-mane.tar.bz2 bits-client-mane.zip |
Diffstat (limited to 'assets/misc.js')
-rw-r--r-- | assets/misc.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/assets/misc.js b/assets/misc.js index 828c0fa..776f3d9 100644 --- a/assets/misc.js +++ b/assets/misc.js @@ -1,11 +1,10 @@ function showConfirm(text) { - document.getElementById("confirm-modal").style.display = isNodeJS ? "flex" : ""; document.getElementById("confirm-text").innerText = text; - document.getElementById('confirm-button-cancel').disabled = false; - document.getElementById('confirm-button-ok').disabled = false; + Array.from(document.querySelectorAll(".mdc-delete-dialog .mdc-dialog__actions button")).map((e) => e.disabled = false); + deleteDialog.open(); } confirmAction = () => { console.log("Confirmed!"); - document.getElementById('confirm-modal').style.display = 'none'; + deleteDialog.close(); }
\ No newline at end of file |