Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/khata.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2019-07-20 05:31:56 +0300
committerDarshan Baral <darshanbaral@gmail.com>2019-07-20 05:31:56 +0300
commit3d3a3f172523bc89c2dcc4c2cc8d7be5d83d2307 (patch)
tree66dcfa7645201538801c1bdcb10b13dfea749c01
parent0b48c288d99fed0017e3ad11dc713652854a6e8e (diff)
Fixes menu disappearing issue when clicking Taxa
-rw-r--r--layouts/partials/menu/menu_alltaxa.html6
-rw-r--r--static/js/khata.js2
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