aboutsummaryrefslogtreecommitdiffstats
path: root/app/static/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'app/static/scripts')
-rw-r--r--app/static/scripts/purge.js15
-rw-r--r--app/static/scripts/rebuild.js14
2 files changed, 0 insertions, 29 deletions
diff --git a/app/static/scripts/purge.js b/app/static/scripts/purge.js
deleted file mode 100644
index 5ee34f0..0000000
--- a/app/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>');
- }
- });
- });
-});
diff --git a/app/static/scripts/rebuild.js b/app/static/scripts/rebuild.js
deleted file mode 100644
index 8fd0e2e..0000000
--- a/app/static/scripts/rebuild.js
+++ /dev/null
@@ -1,14 +0,0 @@
-$(() => {
- $('#confirm').click(() => {
- $.ajax({
- type: 'GET',
- url: `/special/rebuild/confirm`,
- success: () => {
- $('#response').html('<div class=\'box\'>Successfully rebuilt page directory.</div>');
- },
- error: () => {
- $('#response').html('<div class=\'box\'>Could not rebuild page directory. Try again later.</div>');
- }
- });
- });
-});