diff --git a/abort.html b/abort.html
new file mode 100644
index 0000000..a136425
--- /dev/null
+++ b/abort.html
@@ -0,0 +1,40 @@
+
+
+
+
+ Aborting...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Daemon exited...
+
+
+
+
+
+
diff --git a/css/style.css b/css/style.css
index a539fab..a9c86a5 100644
--- a/css/style.css
+++ b/css/style.css
@@ -839,6 +839,7 @@ button.disabled:hover
{
font-size: 13px;
margin: 2px 10px 4px 60px;
+ word-break: break-all;
}
.post-context
{
diff --git a/network.html b/network.html
index 76371a1..7985159 100644
--- a/network.html
+++ b/network.html
@@ -85,6 +85,11 @@
00.00.00.00
+
+
+
+
+
Detailed information
diff --git a/tmobile.html b/tmobile.html
index ea7327c..12dc101 100644
--- a/tmobile.html
+++ b/tmobile.html
@@ -478,7 +478,8 @@
-
+
+
Detailed information
-
diff --git a/twister_network.js b/twister_network.js
index b917ce6..e110987 100644
--- a/twister_network.js
+++ b/twister_network.js
@@ -220,6 +220,27 @@ function setSpamMsg() {
}, {});
}
+function exitDaemon() {
+ if (confirm('Are you sure you want to exit the daemon?\nThe Twister client will stop working.')) {
+ $( ".terminate-daemon").text("Exiting...");
+ $( ".terminate-daemon").addClass("disabled");
+ $.MAL.disableButton( $( ".terminate-daemon") );
+
+ twisterRpc("stop", undefined,
+ function(args, ret) {
+ console.log("daemon exiting");
+
+ setTimeout(function _reload_after_exit() {
+ window.location.href = '/abort.html';
+ }, 2000);
+ }, {},
+ function(args, ret) {
+ console.log("error while exiting daemon");
+ }, {});
+
+ }
+}
+
// handlers common to both desktop and mobile
function interfaceNetworkHandlers() {
$( ".new-peer-addr" ).keyup( peerKeypress );
@@ -228,6 +249,7 @@ function interfaceNetworkHandlers() {
$( ".add-dns").bind( "click", addDNSClick );
$( "select.genblock").change( setGenerate );
$( ".update-spam-msg").bind( "click", setSpamMsg );
+ $( ".terminate-daemon").bind( "click", exitDaemon )
}