diff options
author | Devaev Maxim <[email protected]> | 2018-11-27 12:17:41 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-27 12:17:41 +0300 |
commit | 8c3f604e4a64fa6b81da30d6d3cba6c9dc0d9d71 (patch) | |
tree | 41dad69a0bbdcb20e8e496d7726258589cf73d90 /web/js/ui.js | |
parent | 1897d72b5191ba88130f99feec302ea95b4ce6cd (diff) |
web: fixed focus after modal window
Diffstat (limited to 'web/js/ui.js')
-rw-r--r-- | web/js/ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/ui.js b/web/js/ui.js index 7c14372f..b4c13536 100644 --- a/web/js/ui.js +++ b/web/js/ui.js @@ -299,7 +299,7 @@ function Ui() { el_last_window = (document.activeElement.closest(".modal-window") || document.activeElement.closest(".window")); } - if (el_last_window === el_except) { + if (!el_last_window || el_last_window === el_except) { var max_z_index = 0; __windows.forEach(function(el_window) { var z_index = parseInt(window.getComputedStyle(el_window, null).zIndex) || 0; |