From c56a4ce4cbec0a61907f5da8a17e6ef409317775 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Sat, 8 Feb 2020 17:24:19 +0800 Subject: [PATCH] Add settings.js --- libs/webadmin/static/js/settings.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 libs/webadmin/static/js/settings.js diff --git a/libs/webadmin/static/js/settings.js b/libs/webadmin/static/js/settings.js new file mode 100644 index 0000000..ee31eee --- /dev/null +++ b/libs/webadmin/static/js/settings.js @@ -0,0 +1,6 @@ +function shutdown() { + $(".container").html("

Disconnected.

"); + $.post("/api", { + task: "shutdown" + }); +} \ No newline at end of file