mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
modal dialog processing like a window
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user