clone navbar on notifications/global search show
This commit is contained in:
@@ -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'));
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user