mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
web: removed legacy option
This commit is contained in:
@@ -346,7 +346,8 @@ function __WindowManager() {
|
|||||||
return promise;
|
return promise;
|
||||||
};
|
};
|
||||||
|
|
||||||
self.showWindow = function(el_win, activate=true, center=false) {
|
self.showWindow = function(el_win) {
|
||||||
|
let center = false;
|
||||||
let showed = false;
|
let showed = false;
|
||||||
if (!self.isWindowVisible(el_win)) {
|
if (!self.isWindowVisible(el_win)) {
|
||||||
center = true;
|
center = true;
|
||||||
@@ -354,9 +355,7 @@ function __WindowManager() {
|
|||||||
}
|
}
|
||||||
__organizeWindow(el_win, center);
|
__organizeWindow(el_win, center);
|
||||||
el_win.style.visibility = "visible";
|
el_win.style.visibility = "visible";
|
||||||
if (activate) {
|
|
||||||
__activateWindow(el_win);
|
__activateWindow(el_win);
|
||||||
}
|
|
||||||
if (el_win.show_hook) {
|
if (el_win.show_hook) {
|
||||||
if (showed) {
|
if (showed) {
|
||||||
el_win.show_hook();
|
el_win.show_hook();
|
||||||
|
|||||||
Reference in New Issue
Block a user