From a84425a42e9246243dffd23dba33b4d4a5b626ac Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:17:44 +0000 Subject: Update styles & add page rebuilding --- app/static/scripts/rebuild.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/static/scripts/rebuild.js (limited to 'app/static/scripts/rebuild.js') 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('
Successfully rebuilt page directory.
'); + }, + error: () => { + $('#response').html('
Could not rebuild page directory. Try again later.
'); + } + }); + }); +}); -- cgit v1.2.3-70-g09d2