Click on search link collapse toggle menu

This commit is contained in:
Pierre HUBERT 2018-08-31 09:06:29 +02:00
parent f91ffba2a4
commit c495337aa6

View File

@ -258,7 +258,7 @@ ComunicWeb.components.menuBar.authenticated = {
var searchLinkLi = createElem2({ var searchLinkLi = createElem2({
appendTo: navbarElem, appendTo: navbarElem,
type: "li", type: "li",
class: "navbar-left messages-menu visible-xs" class: "navbar-left visible-xs"
}); });
var searchLink = createElem2({ var searchLink = createElem2({
@ -269,6 +269,7 @@ ComunicWeb.components.menuBar.authenticated = {
searchLink.addEventListener("click", function(){ searchLink.addEventListener("click", function(){
openPage("search"); openPage("search");
$(navbarElem.parentNode).collapse("toggle");
}); });
} }