You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -488,34 +494,54 @@ function updateServerPowerControls (data) {
488
494
$('[data-attr="power"]').click(function (event) {
489
495
event.preventDefault();
490
496
var action =$(this).data('action');
497
+
var killConfirm =false;
491
498
if (action ==='kill') {
492
-
var killConfirm =confirm('WARNING: This operation will not save your server data gracefully. You should only use this if your server is failing to respond to normal stop commands.');
var error ='An unknown error occured processing this request.';
510
-
if (typeofjqXHR.responseJSON.error!=='undefined') {
511
-
error =jqXHR.responseJSON.error;
512
-
}
513
-
$('#pw_resp').attr('class', 'alert alert-danger').html('Unable to process your request. Please try again. ('+ error +')').fadeIn().delay(5000).fadeOut();
499
+
swal({
500
+
type:'warning',
501
+
title:'',
502
+
text:'This operation will not save your server data gracefully. You should only use this if your server is failing to respond to normal stop commands.',
0 commit comments