From 3f91a121b33151cd466de930d0e68bdf87f4d19e Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Mon, 20 Dec 2021 14:48:04 +0000 Subject: Convert to typescript --- static/scripts/rebuild.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 static/scripts/rebuild.js (limited to 'static/scripts/rebuild.js') diff --git a/static/scripts/rebuild.js b/static/scripts/rebuild.js new file mode 100644 index 0000000..8fd0e2e --- /dev/null +++ b/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