moduleview open notification filter - fixes frappe/erpnext#3029
This commit is contained in:
parent
be860c76bc
commit
35a05043e1
1 changed files with 6 additions and 1 deletions
|
|
@ -81,7 +81,12 @@ frappe.views.moduleview.ModuleView = Class.extend({
|
|||
.appendTo(this.page.main);
|
||||
|
||||
$(this.sections[name]).find(".module-item").each(function(i, mi) {
|
||||
$(mi).on("click", function() {
|
||||
$(mi).on("click", function(event) {
|
||||
// if clicked on open notification!
|
||||
if (event.target.classList.contains("open-notification")) {
|
||||
var doctype = event.target.getAttribute("data-doctype");
|
||||
frappe.route_options = frappe.boot.notification_info.conditions[doctype];
|
||||
}
|
||||
frappe.set_route(me.get_route(data.items[$(mi).attr("data-item-index")]));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue