[fix] strip html of title in listview
This commit is contained in:
parent
c9cd47b611
commit
568b0380a1
1 changed files with 2 additions and 2 deletions
|
|
@ -327,7 +327,7 @@ frappe.views.ListView = Class.extend({
|
|||
data._name_encoded = encodeURIComponent(data.name);
|
||||
data._submittable = frappe.model.is_submittable(this.doctype);
|
||||
|
||||
data._title = data[this.title_field || "name"] || data["name"];
|
||||
data._title = strip_html(data[this.title_field || "name"] || data["name"]);
|
||||
data._full_title = data._title;
|
||||
|
||||
if(data._title.length > 40) {
|
||||
|
|
@ -390,4 +390,4 @@ frappe.views.ListView = Class.extend({
|
|||
var icon_html = "<i class='%(icon_class)s' title='%(label)s'></i>";
|
||||
$(parent).append(repl(icon_html, {icon_class: icon_class, label: __(label) || ''}));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue