ソースを参照

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

version-14
Suraj Shetty 3年前
committed by GitHub
コミット
29f98f52db
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更5行の追加4行の削除
  1. +5
    -4
      frappe/public/js/frappe/ui/notifications/notifications.js

+ 5
- 4
frappe/public/js/frappe/ui/notifications/notifications.js ファイルの表示

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



読み込み中…
キャンセル
保存