modal dialog processing like a window

This commit is contained in:
Devaev Maxim
2018-08-27 14:48:44 +03:00
parent 9a243eaa04
commit 8aee773c1c
11 changed files with 102 additions and 90 deletions

View File

@@ -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);
}
}
});