aboutsummaryrefslogtreecommitdiffstats
path: root/app/static/scripts
diff options
context:
space:
mode:
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>');
+ }
+ });
+ });
+});