fixes in communication js, if no subject

This commit is contained in:
Anand Doshi 2013-02-14 15:17:57 +05:30
parent 67469bc6fc
commit 8ca73026ff

View file

@ -58,7 +58,7 @@ wn.views.CommunicationList = Class.extend({
var subject = this.doc.subject;
if(!subject && this.list.length) {
// get subject from previous message
subject = this.list[0].subject;
subject = this.list[0].subject || "[No Subject]";
if(strip(subject.toLowerCase().split(":")[0])!="re") {
subject = "Re: " + subject;
}