mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
minor fix in communication list view
This commit is contained in:
@@ -16,8 +16,10 @@ wn.doclistviews['Communication'] = wn.views.ListView.extend({
|
|||||||
this.prepare_when(data, data.creation);
|
this.prepare_when(data, data.creation);
|
||||||
|
|
||||||
// escape double quote
|
// escape double quote
|
||||||
data.content = cstr(data.subject).replace(/"/gi, '\"')
|
data.content = cstr(data.subject)
|
||||||
+ " | " + cstr(data.content).replace(/"/gi, '\"');
|
+ " | " + cstr(data.content);
|
||||||
|
data.content = data.content.replace(/"/gi, '\"')
|
||||||
|
.replace(/</gi, '<').replace(/>/gi, '>');
|
||||||
|
|
||||||
if(data.content && data.content.length > 50) {
|
if(data.content && data.content.length > 50) {
|
||||||
data.content = '<span title="'+data.content+'">' +
|
data.content = '<span title="'+data.content+'">' +
|
||||||
|
|||||||
Reference in New Issue
Block a user