fix in gs

This commit is contained in:
Anand Doshi 2012-06-07 11:50:52 +05:30
parent e5de85aec2
commit afb3d53f55
2 changed files with 6 additions and 2 deletions

View File

@ -38,7 +38,9 @@ cur_frm.cscript.render_communication_list = function(doc, dt, dn) {
this._super(data);
data.creation = wn.datetime.str_to_user(data.communication_date);
data.content = cstr(data.subject) + " | " + cstr(data.content);
// replace double quote with blank string
data.content = cstr(data.subject).replace(/"/gi, '')
+ " | " + cstr(data.content).replace(/"/gi, '');
if(data.content && data.content.length > 50) {
data.content = '<span title="'+data.content+'">' +

View File

@ -15,7 +15,9 @@ wn.doclistviews['Communication'] = wn.views.ListView.extend({
this._super(data);
data.creation = wn.datetime.only_date(data.creation);
data.content = cstr(data.subject) + " | " + cstr(data.content);
// replace double quote with blank string
data.content = cstr(data.subject).replace(/"/gi, '')
+ " | " + cstr(data.content).replace(/"/gi, '');
if(data.content && data.content.length > 50) {
data.content = '<span title="'+data.content+'">' +