diff options
author | Devaev Maxim <[email protected]> | 2018-08-19 03:50:10 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-19 03:50:10 +0300 |
commit | 1591b8ed3530e1762def620bbc04eca219ca444d (patch) | |
tree | f84c25477b3407fb8098b15c8a2970f0f90d7f52 /kvmd | |
parent | 4ef978406f8cae5b0d0f9ae97d9c814d94bf272e (diff) |
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/web/js/ui.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/web/js/ui.js b/kvmd/web/js/ui.js index c369a675..f97b237b 100644 --- a/kvmd/web/js/ui.js +++ b/kvmd/web/js/ui.js @@ -144,8 +144,7 @@ function Ui(hid) { for (var el_item = event.target; el_item && el_item !== document; el_item = el_item.parentNode) { if (el_item.hasAttribute("data-force-hide-menu")) { break; - } - else if (el_item.hasAttribute("data-dont-hide-menu")) { + } else if (el_item.hasAttribute("data-dont-hide-menu")) { return; } } |