瀏覽代碼

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

version-14
Suraj Shetty 3 年之前
committed by GitHub
父節點
當前提交
29f98f52db
沒有發現已知的金鑰在資料庫的簽署中 GPG Key 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;
}



Loading…
取消
儲存