Procházet zdrojové kódy

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

version-14
Suraj Shetty před 3 roky
committed by GitHub
rodič
revize
29f98f52db
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. +5
    -4
      frappe/public/js/frappe/ui/notifications/notifications.js

+ 5
- 4
frappe/public/js/frappe/ui/notifications/notifications.js Zobrazit soubor

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



Načítá se…
Zrušit
Uložit