Fix #4030: #search-menu-nav required in theme view layout main

This commit is contained in:
buddh4 2020-05-13 14:33:58 +02:00
parent e78d80ee40
commit feaa54e6fa
2 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,7 @@ HumHub Change Log
- Fix #4036: Uploaded photos are not rotated correctly
- Fix #4078: Richtext linkextension pattern fails on link extensions with containing `)` in link title
- Fix #4080: Invalid absolute urls created in acceptance tests
- Fix #4030: #search-menu-nav required in theme view layout main
1.5.1 (April 19, 2020)
----------------------

View File

@ -48,11 +48,12 @@ humhub.module('ui.topNavigation', function (module, require, $) {
};
var isOverflow = function() {
return $topNav[0].offsetHeight > $topBarSecond[0].offsetHeight || $('.search-menu')[0].offsetTop;
$searchMenu = $('.search-menu');
return $topNav[0].offsetHeight > $topBarSecond[0].offsetHeight || ($searchMenu.length && $searchMenu[0].offsetTop);
};
module.export({
init: init,
sortOrder: 100,
})
});
});