diff options
author | Devaev Maxim <[email protected]> | 2021-04-13 10:14:27 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-04-13 10:14:27 +0300 |
commit | 5dc123e1860be5e582de1ed4341296c3c3f649da (patch) | |
tree | d096949bec0a122726c96350150f5df6b8618961 /web/share/js/wm.js | |
parent | 6de0ee0017df50d155a00d748ed2b676f8293655 (diff) |
refactoring
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() { // При переполнении рабочей области сократить размер окна по высоте. |