Implement popup notifications filter based on tab notification's indicator

This commit is contained in:
Hadi Nategh
2020-07-27 14:44:44 +02:00
parent 47505cd6b2
commit 231312b0aa
7 changed files with 44 additions and 1 deletions

View File

@ -358,8 +358,15 @@ function egw_fw_ui_tab(_parent, _contHeaderDiv, _contDiv, _icon, _callback,
});
this.notificationDiv = document.createElement("div");
var self = this;
jQuery(this.notificationDiv).addClass('notifyTabDiv')
.hide()
.click(function(e){
if (app.notifications.tabToggle(self.tag.appName))
{
e.stopImmediatePropagation();
}
})
.appendTo(this.headerDiv);
jQuery(this.headerDiv).append(this.closeButton);