From f4a3e9bf53c657c3e6b9330eb6ad644094f75e61 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Sat, 20 Nov 2021 17:46:20 +0000 Subject: Initial commit --- app/static/scripts/purge.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/static/scripts/purge.js (limited to 'app/static/scripts/purge.js') diff --git a/app/static/scripts/purge.js b/app/static/scripts/purge.js new file mode 100644 index 0000000..5ee34f0 --- /dev/null +++ b/app/static/scripts/purge.js @@ -0,0 +1,15 @@ +$(() => { + $('#confirm').click(() => { + let page = $('#confirm').data('page'); + $.ajax({ + type: 'GET', + url: `/special/purge/${page}/confirm`, + success: () => { + $('#response').html('
Successfully purged page.
'); + }, + error: () => { + $('#response').html('
Could not purge page. Try again later.
'); + } + }); + }); +}); -- cgit v1.2.3-70-g09d2