aboutsummaryrefslogtreecommitdiffstats
path: root/static/scripts/purge.js
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-08-05 21:11:48 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-08-05 21:11:48 +0100
commit18cc5f69129615850e48a995f7c3406b74d8d2f4 (patch)
tree1fdc6eadae4b0a6da69319f9b6733379ced2e4c2 /static/scripts/purge.js
parent64c36dcef8ab1c0b985d79da627cecd30fd50336 (diff)
Redesign website
Diffstat (limited to 'static/scripts/purge.js')
-rw-r--r--static/scripts/purge.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/static/scripts/purge.js b/static/scripts/purge.js
deleted file mode 100644
index 5ee34f0..0000000
--- a/static/scripts/purge.js
+++ /dev/null
@@ -1,15 +0,0 @@
-$(() => {
- $('#confirm').click(() => {
- let page = $('#confirm').data('page');
- $.ajax({
- type: 'GET',
- url: `/special/purge/${page}/confirm`,
- success: () => {
- $('#response').html('<div class=\'box\'>Successfully purged page.</div>');
- },
- error: () => {
- $('#response').html('<div class=\'box\'>Could not purge page. Try again later.</div>');
- }
- });
- });
-});