Merge pull request #15756 from shariquerik/hide-notification-on-click
This commit is contained in:
commit
29f98f52db
1 changed files with 5 additions and 4 deletions
|
|
@ -283,12 +283,13 @@ class NotificationsView extends BaseNotificationsView {
|
|||
e.stopImmediatePropagation();
|
||||
this.mark_as_read(field.name, item_html);
|
||||
});
|
||||
|
||||
item_html.on('click', () => {
|
||||
this.mark_as_read(field.name, item_html);
|
||||
});
|
||||
}
|
||||
|
||||
item_html.on('click', () => {
|
||||
!field.read && this.mark_as_read(field.name, item_html);
|
||||
this.notifications_icon.trigger('click');
|
||||
});
|
||||
|
||||
return item_html;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue