diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index f28ccc6fe0..6bdf44bd48 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -29,6 +29,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { 2000 ); this.count_upper_bound = 1001; + this._element_factory = new ElementFactory(this.doctype); } has_permissions() { @@ -876,7 +877,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { column_html = this.settings.formatters[fieldname](value, df, doc); } else { column_html = { - Subject: this.get_subject_html(doc), + Subject: this.get_subject_element(doc).innerHTML, Field: field_html(), }[col.type]; } @@ -937,10 +938,10 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { let comment_count = null; if (this.list_view_settings && !this.list_view_settings.disable_comment_count) { - comment_count = $(``); - $(comment_count).append(` + comment_count = ` ${frappe.utils.icon("es-line-chat-alt")} - ${doc._comment_count > 99 ? "99+" : doc._comment_count || 0}`); + ${doc._comment_count > 99 ? "99+" : doc._comment_count || 0} + `; } html += ` @@ -949,7 +950,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { ${settings_button || assigned_to} ${modified} - ${comment_count ? $(comment_count).prop("outerHTML") : ""} + ${comment_count || ""} ${comment_count ? 'ยท' : ""}