Selaa lähdekoodia

Merge pull request #15756 from shariquerik/hide-notification-on-click

version-14
Suraj Shetty 3 vuotta sitten
committed by GitHub
vanhempi
commit
29f98f52db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. +5
    -4
      frappe/public/js/frappe/ui/notifications/notifications.js

+ 5
- 4
frappe/public/js/frappe/ui/notifications/notifications.js Näytä tiedosto

@@ -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;
}



Ladataan…
Peruuta
Tallenna