summaryrefslogtreecommitdiff
path: root/web/share/js/wm.js
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-11-07 00:31:08 +0200
committerMaxim Devaev <[email protected]>2024-11-07 00:34:24 +0200
commite9e7f9bd0553b77a993f560d64ec814f520852fb (patch)
tree7ccdd481787f467108f4c5c518765acdda9b3a61 /web/share/js/wm.js
parentf1503d69e0b15caa5d8fd0f4fb30b91d516db2ea (diff)
pikvm/pikvm#1341: Web: Switch to maximize tab by default
Diffstat (limited to 'web/share/js/wm.js')
-rw-r--r--web/share/js/wm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js
index 1c1b67df..162f43ba 100644
--- a/web/share/js/wm.js
+++ b/web/share/js/wm.js
@@ -111,8 +111,8 @@ function __WindowManager() {
let el_exit_full_tab_button = el_window.querySelector(".window-button-exit-full-tab");
if (el_enter_full_tab_button && el_exit_full_tab_button) {
el_enter_full_tab_button.title = "Stretch to the entire tab";
- tools.el.setOnClick(el_enter_full_tab_button, () => self.toggleFullTabWindow(el_window, true));
- tools.el.setOnClick(el_exit_full_tab_button, () => self.toggleFullTabWindow(el_window, false));
+ tools.el.setOnClick(el_enter_full_tab_button, () => self.setFullTabWindow(el_window, true));
+ tools.el.setOnClick(el_exit_full_tab_button, () => self.setFullTabWindow(el_window, false));
}
let el_full_screen_button = el_window.querySelector(".window-header .window-button-full-screen");
@@ -334,7 +334,7 @@ function __WindowManager() {
__activateLastWindow(el_window);
};
- self.toggleFullTabWindow = function(el_window, enabled) {
+ self.setFullTabWindow = function(el_window, enabled) {
el_window.classList.toggle("window-full-tab", enabled);
__activateLastWindow(el_window);
let el_navbar = $("navbar");