aboutsummaryrefslogtreecommitdiffstats
path: root/app/static/scripts
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-11-22 14:17:44 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-11-22 14:17:44 +0000
commita84425a42e9246243dffd23dba33b4d4a5b626ac (patch)
tree5e0a356407e50b172afeb8662a6a6f2fb6e334fe /app/static/scripts
parent7d1aa7d48e5f16d639713804d6a86290fac7ffab (diff)
Update styles & add page rebuilding
Diffstat (limited to 'app/static/scripts')
-rw-r--r--app/static/scripts/rebuild.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/static/scripts/rebuild.js b/app/static/scripts/rebuild.js
new file mode 100644
index 0000000..8fd0e2e
--- /dev/null
+++ b/app/static/scripts/rebuild.js
@@ -0,0 +1,14 @@
+$(() => {
+ $('#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>');
+ }
+ });
+ });
+});