fix: prepared report should not open in a new tab

This commit is contained in:
Rushabh Mehta 2019-01-03 18:05:54 +05:30
parent 53b11e3d0d
commit d272a5a76b

View file

@ -71,7 +71,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
this.refresh();
} else {
let alert_message = `Report ${this.report_name} generated.
<a target='_blank' href="#query-report/${this.report_name}/?prepared_report_name=${data.name}">View</a>`;
<a href="#query-report/${this.report_name}/?prepared_report_name=${data.name}">View</a>`;
frappe.show_alert({message: alert_message, indicator: 'orange'});
}
}
@ -377,7 +377,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
// Rememeber the name of Prepared Report doc
this.prepared_report_doc_name = data.name;
let alert_message = `Report initiated. You can track its status
<a class='text-info' target='_blank' href=${data.redirect_url}>here</a>`;
<a class='text-info' href='#Form/Prepared Report/${data.name}'>here</a>`;
frappe.show_alert({message: alert_message, indicator: 'orange'});
this.toggle_nothing_to_show(true);
});