diff options
author | Devaev Maxim <[email protected]> | 2018-08-27 14:48:44 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-27 14:48:44 +0300 |
commit | 8aee773c1c355e0eea05938ec179e0ce8bef1dd9 (patch) | |
tree | 85ff8069e07defacba680c9a120e27f9e0a7cb02 /kvmd/web/js/atx.js | |
parent | 9a243eaa0402aebc61cd7a247a04b57bd8ec0ad3 (diff) |
modal dialog processing like a window
Diffstat (limited to 'kvmd/web/js/atx.js')
-rw-r--r-- | kvmd/web/js/atx.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/js/atx.js b/kvmd/web/js/atx.js index 7e047176..6f1d2b19 100644 --- a/kvmd/web/js/atx.js +++ b/kvmd/web/js/atx.js @@ -38,14 +38,14 @@ function Atx() { }; var __clickButton = function(button, timeout, confirm_msg) { - modal.confirm(confirm_msg).then(function(ok) { + ui.confirm(confirm_msg).then(function(ok) { if (ok) { var http = tools.makeRequest("POST", "/kvmd/atx/click?button=" + button, function() { if (http.readyState === 4) { if (http.status === 409) { - modal.error("Performing another ATX operation for other client.<br>Please try again later"); + ui.error("Performing another ATX operation for other client.<br>Please try again later"); } else if (http.status !== 200) { - modal.error("Click error:<br>", http.responseText); + ui.error("Click error:<br>", http.responseText); } } }, timeout); |