diff --git a/src/arquivos/js/app/partials/Menu.js b/src/arquivos/js/app/partials/Menu.js index 74d8e04..5199aff 100644 --- a/src/arquivos/js/app/partials/Menu.js +++ b/src/arquivos/js/app/partials/Menu.js @@ -1,3 +1,5 @@ +import { isSmallerThen991 } from "Helpers/MediasMatch"; + export default class Menu { constructor() { this.selectors(); @@ -15,8 +17,12 @@ export default class Menu { events() { this.openMenuButton.click(this.openMenu.bind(this)); this.closeMenuButton.click(this.closeMenu.bind(this)); - this.departmentLink.click(this.openSubmenu.bind(this)); + this.returnButton.click(this.closeSubmenu.bind(this)); + + if (isSmallerThen991) { + this.departmentLink.click(this.openSubmenu.bind(this)); + } } openMenu() { diff --git a/src/controles-customizados/menuPrincipal.html b/src/controles-customizados/menuPrincipal.html index 913f3f0..7beb010 100644 --- a/src/controles-customizados/menuPrincipal.html +++ b/src/controles-customizados/menuPrincipal.html @@ -79,12 +79,120 @@ LOREM IPSUM + +