From dbade8b56907bec9c5e51785022ec67883ee3f07 Mon Sep 17 00:00:00 2001 From: EinMByte Date: Thu, 17 Sep 2015 23:18:31 +0200 Subject: [PATCH] (Graceful) restart and reseed buttons in webui. --- webui/index.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/webui/index.html b/webui/index.html index 01fd8231..688551bd 100644 --- a/webui/index.html +++ b/webui/index.html @@ -44,6 +44,18 @@ function requestRouterInfo(session) { window.onload = function() { var session = new I2PControl.Session("itoopie"); session.start(function() { requestRouterInfo(session); }); + document.getElementById("shutdown").onclick = function() { + session.request("RouterManager", {"Shutdown" : ""}, function() {}); + this.disabled = true; + }; + document.getElementById("shutdown-graceful").onclick = function() { + session.request("RouterManager", {"ShutdownGraceful" : ""}, function() {}); + this.disabled = true; + }; + document.getElementById("reseed").onclick = function() { + session.request("RouterManager", {"Reseed" : ""}, function() {}); + this.disabled = true; + }; }; @@ -55,7 +67,8 @@ window.onload = function() {

Version: , uptime:

Network status:

- + +