summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-27 12:17:41 +0300
committerDevaev Maxim <[email protected]>2018-11-27 12:17:41 +0300
commit8c3f604e4a64fa6b81da30d6d3cba6c9dc0d9d71 (patch)
tree41dad69a0bbdcb20e8e496d7726258589cf73d90 /web
parent1897d72b5191ba88130f99feec302ea95b4ce6cd (diff)
web: fixed focus after modal window
Diffstat (limited to 'web')
-rw-r--r--web/js/ui.js2
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;