diff options
author | Minteck <contact@minteck.org> | 2022-07-09 15:22:44 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-09 15:22:44 +0200 |
commit | 5abe8cba55965f70e07e1163239bcc9d797c864a (patch) | |
tree | eb29933d2d5420c134f21a941cceb1d361c53b1d /assets/misc.js | |
parent | 1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e (diff) | |
download | bits-client-5abe8cba55965f70e07e1163239bcc9d797c864a.tar.gz bits-client-5abe8cba55965f70e07e1163239bcc9d797c864a.tar.bz2 bits-client-5abe8cba55965f70e07e1163239bcc9d797c864a.zip |
Bye bye desktop app
Diffstat (limited to 'assets/misc.js')
-rw-r--r-- | assets/misc.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/misc.js b/assets/misc.js new file mode 100644 index 0000000..828c0fa --- /dev/null +++ b/assets/misc.js @@ -0,0 +1,11 @@ +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; +} + +confirmAction = () => { + console.log("Confirmed!"); + document.getElementById('confirm-modal').style.display = 'none'; +}
\ No newline at end of file |