Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Anand Doshi
2012-10-04 19:26:53 +05:30
10 changed files with 43 additions and 85 deletions

View File

@@ -170,8 +170,11 @@ erpnext.module_page.make_list = function(module, wrapper) {
parent: $parent2,
method: 'utilities.get_report_list',
render_row: function(row, data) {
data.report_type = data.is_query_report ? "query-report" : "Report2"
$(row).html(repl('<a href="#!%(report_type)s/%(ref_doctype)s/%(name)s" \
data.report_type = data.is_query_report
? "query-report"
: repl("Report2/%(ref_doctype)s", data)
$(row).html(repl('<a href="#!%(report_type)s/%(name)s" \
data-doctype="%(ref_doctype)s">\
%(name)s</a>', data))
},