Permalink
Browse files

Final touches : email address can exist w/o name

  • Loading branch information...
1 parent 0efb587 commit 352b6fccafb856daba9b77bd9dad45016819da5f @stefancrain stefancrain committed Jan 18, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 modules/nyss_imapper/nyss_imapper.js
@@ -883,8 +883,14 @@ function buildMessageList() {
messagesHtml += '<tr id="'+value.uid+'_'+value.imap_id+'" data-id="'+value.uid+'" data-imap_id="'+value.imap_id+'" class="imapper-message-box"> <td class="" ><input class="checkboxieout" type="checkbox" name="'+value.uid+'" data-id="'+value.imap_id+'"/></td>';
if( value.from_name != ''){
messagesHtml += '<td class="name" data-firstName="'+firstName(value.from_name)+'" data-lastName="'+lastName(value.from_name)+'">'+short_subject(value.from_name,20);
- messagesHtml += '<span class="emailbubble marginL10">'+short_subject(value.from_email,15)+'</span>';
+
+ if( value.from_email != ''){
+ messagesHtml += '<span class="emailbubble marginL10">'+short_subject(value.from_email,15)+'</span>';
+ }
messagesHtml +='</td>';
+
+ }else if( value.from_email != ''){
+ messagesHtml += '<td class="name"><span class="emailbubble">'+short_subject(value.from_email,25)+'</span></td>';
}else {
messagesHtml += '<td class="name">N/A</td>';
}

0 comments on commit 352b6fc

Please sign in to comment.