summaryrefslogtreecommitdiff
path: root/kvmd/web/js/stream.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-27 13:13:49 +0300
committerDevaev Maxim <[email protected]>2018-08-27 13:13:49 +0300
commita8773eab1e8f82a7bd862492e5520dcb9690a5e0 (patch)
tree77c8caeaf749073e26ef50e83c44b784312dd79b /kvmd/web/js/stream.js
parent47a077a3b7d7ccadf8a1adcd608ffe61ac5bf818 (diff)
own modals - first implementation
Diffstat (limited to 'kvmd/web/js/stream.js')
-rw-r--r--kvmd/web/js/stream.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/web/js/stream.js b/kvmd/web/js/stream.js
index baee87c1..d6147310 100644
--- a/kvmd/web/js/stream.js
+++ b/kvmd/web/js/stream.js
@@ -60,7 +60,7 @@ function Stream(ui) {
var http = tools.makeRequest("POST", "/kvmd/streamer/reset", function() {
if (http.readyState === 4) {
if (http.status !== 200) {
- alert("Can't reset stream:", http.responseText);
+ modal.error("Can't reset stream:<br>", http.responseText);
}
}
});
@@ -73,7 +73,7 @@ function Stream(ui) {
var http = tools.makeRequest("POST", "/kvmd/streamer/set_params?resolution=" + resolution, function() {
if (http.readyState === 4) {
if (http.status !== 200) {
- alert("Can't change stream:", http.responseText);
+ modal.error("Can't configure stream:<br>", http.responseText);
}
}
});