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