summaryrefslogtreecommitdiff
path: root/kvmd/web/js/stream.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/stream.js
parent9a243eaa0402aebc61cd7a247a04b57bd8ec0ad3 (diff)
modal dialog processing like a window
Diffstat (limited to 'kvmd/web/js/stream.js')
-rw-r--r--kvmd/web/js/stream.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/js/stream.js b/kvmd/web/js/stream.js
index d6147310..51372420 100644
--- a/kvmd/web/js/stream.js
+++ b/kvmd/web/js/stream.js
@@ -1,4 +1,4 @@
-function Stream(ui) {
+function Stream() {
// var self = this;
/********************************************************************************/
@@ -60,7 +60,7 @@ function Stream(ui) {
var http = tools.makeRequest("POST", "/kvmd/streamer/reset", function() {
if (http.readyState === 4) {
if (http.status !== 200) {
- modal.error("Can't reset stream:<br>", http.responseText);
+ ui.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) {
- modal.error("Can't configure stream:<br>", http.responseText);
+ ui.error("Can't configure stream:<br>", http.responseText);
}
}
});