From a2df9a69dcc14cb70118cda2ded499055e7ee358 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 21 Aug 2022 17:31:56 +0200 Subject: m. update --- app/bits/assets/misc.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 app/bits/assets/misc.js (limited to 'app/bits/assets/misc.js') diff --git a/app/bits/assets/misc.js b/app/bits/assets/misc.js new file mode 100755 index 0000000..776f3d9 --- /dev/null +++ b/app/bits/assets/misc.js @@ -0,0 +1,10 @@ +function showConfirm(text) { + document.getElementById("confirm-text").innerText = text; + Array.from(document.querySelectorAll(".mdc-delete-dialog .mdc-dialog__actions button")).map((e) => e.disabled = false); + deleteDialog.open(); +} + +confirmAction = () => { + console.log("Confirmed!"); + deleteDialog.close(); +} \ No newline at end of file -- cgit