Added confirmation popup.

This commit is contained in:
Block Tester 2014-01-17 07:08:13 +00:00
parent 5323072be7
commit beb80b6606

View File

@ -224,6 +224,7 @@ 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") );
@ -239,6 +240,8 @@ function exitDaemon() {
function(args, ret) {
console.log("error while exiting daemon");
}, {});
}
}
// handlers common to both desktop and mobile