summaryrefslogtreecommitdiff
path: root/kvmd/web/js/msd.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-27 14:48:44 +0300
committerDevaev Maxim <[email protected]>2018-08-27 14:48:44 +0300
commit8aee773c1c355e0eea05938ec179e0ce8bef1dd9 (patch)
tree85ff8069e07defacba680c9a120e27f9e0a7cb02 /kvmd/web/js/msd.js
parent9a243eaa0402aebc61cd7a247a04b57bd8ec0ad3 (diff)
modal dialog processing like a window
Diffstat (limited to 'kvmd/web/js/msd.js')
-rw-r--r--kvmd/web/js/msd.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/js/msd.js b/kvmd/web/js/msd.js
index 7652d4fe..f8225406 100644
--- a/kvmd/web/js/msd.js
+++ b/kvmd/web/js/msd.js
@@ -65,7 +65,7 @@ function Msd() {
var http = tools.makeRequest("POST", "/kvmd/msd/connect?to=" + to, function() {
if (http.readyState === 4) {
if (http.status !== 200) {
- modal.error("Switch error:<br>", http.responseText);
+ ui.error("Switch error:<br>", http.responseText);
}
}
__applyState();
@@ -78,7 +78,7 @@ function Msd() {
var el_input = $("msd-select-new-image-file");
var image_file = (el_input.files.length ? el_input.files[0] : null);
if (image_file && image_file.size > __state.info.size) {
- modal.error("New image is too big for your Mass Storage Device.<br>Maximum:", __formatSize(__state.info.size));
+ ui.error("New image is too big for your Mass Storage Device.<br>Maximum:", __formatSize(__state.info.size));
el_input.value = "";
image_file = null;
}
@@ -143,7 +143,7 @@ function Msd() {
var __uploadStateChange = function() {
if (__upload_http.readyState === 4) {
if (__upload_http.status !== 200) {
- modal.error("Can't upload image to the Mass Storage Device:<br>", __upload_http.responseText);
+ ui.error("Can't upload image to the Mass Storage Device:<br>", __upload_http.responseText);
}
$("msd-select-new-image-file").value = "";
__image_file = null;