diff options
Diffstat (limited to 'web/share/js/kvm/msd.js')
-rw-r--r-- | web/share/js/kvm/msd.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index 7cf5aa0f..d1dfac08 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -99,15 +99,19 @@ function Msd() { }; var __clickResetButton = function() { - var http = tools.makeRequest("POST", "/kvmd/msd/reset", function() { - if (http.readyState === 4) { - if (http.status !== 200) { - wm.error("MSD reset error:<br>", http.responseText); - } + wm.confirm("Are you sure you want to reset Mass Storage Device?").then(function(ok) { + if (ok) { + var http = tools.makeRequest("POST", "/kvmd/msd/reset", function() { + if (http.readyState === 4) { + if (http.status !== 200) { + wm.error("MSD reset error:<br>", http.responseText); + } + } + __applyState(); + }); + __applyState(); } - __applyState(); }); - __applyState(); }; var __applyState = function() { |