summaryrefslogtreecommitdiff
path: root/app/bits/static/delete.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
committerMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
commit3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch)
tree75be5fba4368472fb11c8015aee026b2b9a71888 /app/bits/static/delete.js
parent8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff)
downloadpluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'app/bits/static/delete.js')
-rwxr-xr-xapp/bits/static/delete.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/bits/static/delete.js b/app/bits/static/delete.js
deleted file mode 100755
index 0c6ce5e..0000000
--- a/app/bits/static/delete.js
+++ /dev/null
@@ -1,14 +0,0 @@
-async function deleteTransaction(id) {
- let transaction = transactions.filter(i => i.date.absolute === id)[0];
- console.log(transaction);
- showConfirm("This will remove the transaction made by " + transaction.author.name + " " + transaction.date.relative + ".\nIt will be removed from the list and the global balance will be recalculated without this transaction.");
- confirmAction = async () => {
- if (isNodeJS) {
- await (await window.fetch("https://ponies.equestria.horse/bits/Application/RemoveTransaction/index.php?Transaction=" + Buffer.from(id).toString("base64url"))).text();
- } else {
- await (await window.fetch("https://ponies.equestria.horse/bits/Application/RemoveTransaction/index.php?Transaction=" + btoa(id).replaceAll("+", "-").replaceAll("/", "_"))).text();
- }
- await refresh();
- deleteDialog.close();
- }
-} \ No newline at end of file