Fix initialization of js module ui.navigation (#6902)

This commit is contained in:
Yuriy Bakhtin 2024-03-26 16:09:49 +01:00 committed by GitHub
parent 9a65ac26a4
commit 88a959684f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ humhub.module('ui.navigation', function (module, require, $) {
var initTopNav = function () {
// Default implementation for topbar. Activate li on click.
$('#top-menu-nav a:not(#space-menu):not(#top-dropdown-menu):not(data-action-click="ui.modal.load")').on('click', function () {
$('#top-menu-nav a:not(#space-menu):not(#top-dropdown-menu):not([data-action-click="ui.modal.load"])').on('click', function () {
module.setActiveItem($(this));
});