clone navbar on notifications/global search show

This commit is contained in:
Yuri Kuznetsov
2023-08-01 10:44:30 +03:00
parent a6940d38a7
commit 3d4ceb9efb
2 changed files with 8 additions and 0 deletions
@@ -43,6 +43,8 @@ class GlobalSearchView extends View {
});
this.wait(promise);
this.closeNavbarOnShow = /iPad|iPhone|iPod/.test(navigator.userAgent);
}
/**
@@ -92,6 +94,10 @@ class GlobalSearchView extends View {
showPanel() {
this.closePanel();
if (this.closeNavbarOnShow) {
this.$el.closest('.navbar-body').removeClass('in');
}
let $container = $('<div>').attr('id', 'global-search-panel');
$container.appendTo(this.$el.find('.global-search-panel-container'));
+2
View File
@@ -473,6 +473,8 @@ class NotificationBadgeView extends View {
}, view => {
view.render();
this.$el.closest('.navbar-body').removeClass('in');
this.listenTo(view, 'all-read', () => {
this.hideNotRead();
this.$el.find('.badge-circle-warning').remove();