summaryrefslogtreecommitdiff
path: root/web/share/js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-04-23 19:19:55 +0300
committerDevaev Maxim <[email protected]>2021-04-23 19:19:55 +0300
commit4572cd586ecb26346f7ec5236ba7b9c6f3623657 (patch)
treea1363ae2e78508a283d6ec272e38570510091c9a /web/share/js
parent1a584492c62079f085f972f330e6aa4a9de5fbf9 (diff)
button to reduce the window
Diffstat (limited to 'web/share/js')
-rw-r--r--web/share/js/wm.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js
index 44238447..e735f526 100644
--- a/web/share/js/wm.js
+++ b/web/share/js/wm.js
@@ -88,6 +88,7 @@ function __WindowManager() {
let el_close_button = el_window.querySelector(".window-header .window-button-close");
if (el_close_button) {
+ el_close_button.title = "Close window";
tools.setOnClick(el_close_button, function() {
__closeWindow(el_window);
__activateLastWindow(el_window);
@@ -96,14 +97,27 @@ function __WindowManager() {
let el_maximize_button = el_window.querySelector(".window-header .window-button-maximize");
if (el_maximize_button) {
+ el_maximize_button.title = "Maximize window";
tools.setOnClick(el_maximize_button, function() {
__maximizeWindow(el_window);
__activateLastWindow(el_window);
});
}
+ let el_orig_button = el_window.querySelector(".window-header .window-button-original");
+ if (el_orig_button) {
+ el_maximize_button.title = "Reduce window to its original size and center it";
+ tools.setOnClick(el_orig_button, function() {
+ el_window.style.width = "";
+ el_window.style.height = "";
+ __centerWindow(el_window);
+ __activateLastWindow(el_window);
+ });
+ }
+
let el_full_screen_button = el_window.querySelector(".window-header .window-button-full-screen");
if (el_full_screen_button && __getFullScreenFunction(el_window)) {
+ el_full_screen_button.title = "Go to full-screen mode";
tools.setOnClick(el_full_screen_button, function() {
__fullScreenWindow(el_window);
__activateLastWindow(el_window);