mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Click on search link collapse toggle menu
This commit is contained in:
parent
f91ffba2a4
commit
c495337aa6
@ -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");
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user