diff options
Diffstat (limited to 'web/share/js/wm.js')
-rw-r--r-- | web/share/js/wm.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 11d86155..b74e2626 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -63,6 +63,11 @@ function __WindowManager() { __makeWindowMovable(el_window); __windows.push(el_window); + if (el_window.hasAttribute("data-show-by-button")) { + let el_show_button = $(el_window.getAttribute("data-show-by-button")); + tools.setOnClick(el_show_button, () => self.showWindow(el_window)); + } + if (el_window.classList.contains("window-resizable") && window.ResizeObserver) { new ResizeObserver(function() { // При переполнении рабочей области сократить размер окна по высоте. |