From c495337aa6e13c5c9d4c6568a2e5a4f96c23de55 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 31 Aug 2018 09:06:29 +0200 Subject: [PATCH] Click on search link collapse toggle menu --- assets/js/components/menuBar/authenticated.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/components/menuBar/authenticated.js b/assets/js/components/menuBar/authenticated.js index a315cdf8..2a992869 100644 --- a/assets/js/components/menuBar/authenticated.js +++ b/assets/js/components/menuBar/authenticated.js @@ -258,7 +258,7 @@ ComunicWeb.components.menuBar.authenticated = { var searchLinkLi = createElem2({ appendTo: navbarElem, type: "li", - class: "navbar-left messages-menu visible-xs" + class: "navbar-left visible-xs" }); var searchLink = createElem2({ @@ -269,6 +269,7 @@ ComunicWeb.components.menuBar.authenticated = { searchLink.addEventListener("click", function(){ openPage("search"); + $(navbarElem.parentNode).collapse("toggle"); }); }