diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2019-07-20 05:31:56 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2019-07-20 05:31:56 +0300 |
commit | 3d3a3f172523bc89c2dcc4c2cc8d7be5d83d2307 (patch) | |
tree | 66dcfa7645201538801c1bdcb10b13dfea749c01 | |
parent | 0b48c288d99fed0017e3ad11dc713652854a6e8e (diff) |
Fixes menu disappearing issue when clicking Taxa
-rw-r--r-- | layouts/partials/menu/menu_alltaxa.html | 6 | ||||
-rw-r--r-- | static/js/khata.js | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/layouts/partials/menu/menu_alltaxa.html b/layouts/partials/menu/menu_alltaxa.html index f815784..0d83ea9 100644 --- a/layouts/partials/menu/menu_alltaxa.html +++ b/layouts/partials/menu/menu_alltaxa.html @@ -3,8 +3,10 @@ </div> <script> let resetMenus = function() { - resetMainMenu(); - document.querySelector(".all-menu").classList.add("d-none"); + if (vw.matches) { + resetMainMenu(); + document.querySelector(".all-menu").classList.add("d-none"); + } if (document.querySelector(".dropdown-content")) { resetSectionMenu(); zeroHeight(document.querySelector(".dropdown-content")); diff --git a/static/js/khata.js b/static/js/khata.js index 8b13789..0427441 100644 --- a/static/js/khata.js +++ b/static/js/khata.js @@ -1 +1 @@ - +// Check header.html, menu_sections.html, and menu_alltaxa.html |