summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/hid.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r--web/share/js/kvm/hid.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js
index a39201f2..9ecc4be5 100644
--- a/web/share/js/kvm/hid.js
+++ b/web/share/js/kvm/hid.js
@@ -212,11 +212,15 @@ function Hid() {
};
var __clickResetButton = function() {
- var http = tools.makeRequest("POST", "/kvmd/hid/reset", function() {
- if (http.readyState === 4) {
- if (http.status !== 200) {
- wm.error("HID reset error:<br>", http.responseText);
- }
+ wm.confirm("Are you sure you want to reset HID (keyboard & mouse)?").then(function(ok) {
+ if (ok) {
+ var http = tools.makeRequest("POST", "/kvmd/hid/reset", function() {
+ if (http.readyState === 4) {
+ if (http.status !== 200) {
+ wm.error("HID reset error:<br>", http.responseText);
+ }
+ }
+ });
}
});
};