Przeglądaj źródła

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

version-14
Suraj Shetty 3 lat temu
committed by GitHub
rodzic
commit
29f98f52db
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 4 usunięć
  1. +5
    -4
      frappe/public/js/frappe/ui/notifications/notifications.js

+ 5
- 4
frappe/public/js/frappe/ui/notifications/notifications.js Wyświetl plik

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



Ładowanie…
Anuluj
Zapisz