diff options
| Commit | fb093e569036dcb0200afabdb29c83bc2db783d2 (patch) | |
|---|---|---|
| Author | 2020-07-15 10:10:01 +0300 | |
| Committer | 2020-07-15 10:10:01 +0300 | |
| Files | 71ee31bf39565ea6cff7b88b312bf430cf66248b /wp-content/themes/carmag/assets/src/scripts/scripts.js | |
| tues-interns-2020-feature/registration.tar tues-interns-2020-feature/registration.tar.gz tues-interns-2020-feature/registration.zip | ||
| Parent | c09cfaaff21afdf1fa43aa81327611d3f848e7eb (diff) | |
| Parent | 860e362739eee6867b6617320ec9eae81865140a (diff) | |
Sync feature/registration with the latest master feature/registration
1 files changed, 5 insertions, 1 deletions
| -rw-r--r-- | wp-content/themes/carmag/assets/src/scripts/scripts.js | 6 |
diff --git a/wp-content/themes/carmag/assets/src/scripts/scripts.js b/wp-content/themes/carmag/assets/src/scripts/scripts.js index 04e7d0d..1e5febd 100644 --- a/wp-content/themes/carmag/assets/src/scripts/scripts.js +++ b/wp-content/themes/carmag/assets/src/scripts/scripts.js @@ -22,7 +22,7 @@ jQuery(document).ready(function ($) { const toggleDrawer = () => { const drawerClassList = event.target.classList; - const navClassList = document.querySelectorAll(".menu-primary-container")[0] + const navClassList = document.querySelectorAll(".menu-container")[0] .classList; drawerClassList.toggle("opened"); navClassList.toggle("opened"); @@ -31,9 +31,13 @@ const toggleDrawer = () => { const separator = document.createElement("span"); separator.className = "separator"; const loginLink = document.querySelectorAll(".login")[0]; +const profileDropdown = document.querySelectorAll(".profile")[0]; if (loginLink) { loginLink.before(separator); } +if (profileDropdown) { + profileDropdown.before(separator); +} const faqFields = document.querySelectorAll(".faq-field"); faqFields.forEach((field) => { |
