From 209356b8ade1920b50d1d3a1a5e121c6623d167b Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Nov 2022 23:47:49 +0100 Subject: Update --- app/bits/static/misc.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 app/bits/static/misc.js (limited to 'app/bits/static/misc.js') diff --git a/app/bits/static/misc.js b/app/bits/static/misc.js new file mode 100755 index 0000000..776f3d9 --- /dev/null +++ b/app/bits/static/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