mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
web: removed legacy option
This commit is contained in:
parent
ed447a7cc2
commit
3f309077f8
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user