diff options
author | Devaev Maxim <[email protected]> | 2018-11-19 06:39:18 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-19 06:39:18 +0300 |
commit | a9cf03582fe0c037d34be6309108950f1e7d8bad (patch) | |
tree | 2da7d719113b127a7be517bfc4173543ce566a67 /web/js | |
parent | 948c88799f1a6e409161ee4974a6a1c54ed43666 (diff) |
refactoring
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/ui.js b/web/js/ui.js index 754e80b0..ff19cf25 100644 --- a/web/js/ui.js +++ b/web/js/ui.js @@ -155,7 +155,7 @@ function Ui() { var all_hidden = true; __menu_items.forEach(function(el_item) { - var el_menu = el_item.parentElement.querySelector(".menu-dropdown-content"); + var el_menu = el_item.parentElement.querySelector(".menu-item-content"); if (el_item === el_a && window.getComputedStyle(el_menu, null).visibility === "hidden") { el_item.focus(); el_item.classList.add("menu-item-selected"); @@ -184,7 +184,7 @@ function Ui() { var __closeAllMenues = function() { document.onkeyup = null; __menu_items.forEach(function(el_item) { - var el_menu = el_item.parentElement.querySelector(".menu-dropdown-content"); + var el_menu = el_item.parentElement.querySelector(".menu-item-content"); el_item.classList.remove("menu-item-selected"); el_menu.style.visibility = "hidden"; }); |