Skip to content

Commit

Permalink
Where possilbe show empty feilds rather then null
Browse files Browse the repository at this point in the history
  • Loading branch information
stefancrain committed Jan 23, 2013
1 parent cac3596 commit e749b41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/nyss_imapper/nyss_imapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,8 @@ cj(document).ready(function(){
var firstName = cj(this).parent().parent().children('.name').attr('data-firstName');
var lastName = cj(this).parent().parent().children('.name').attr('data-lastName');

cj('.first_name').val(firstName);
cj('.last_name').val(lastName);
if(firstName) cj('.first_name').val(firstName);
if(lastName) cj('.last_name').val(lastName);

cj('#imapper-contacts-list').html('');

Expand All @@ -762,7 +762,10 @@ cj(document).ready(function(){
success: function(data,status) {
cj("#loading-popup").dialog('close');
messages = cj.parseJSON(data);
cj('#message_left_header').html('').append("<strong>From: </strong>"+messages.fromName +" <i>&lt;"+ messages.fromEmail+"&gt;</i><br/><strong>Subject: </strong>"+messages.subject+"<br/><strong>Date: </strong>"+messages.date+"<br/>");

cj('#message_left_header').html('').append("<strong>From: </strong>"+messages.fromName +" <i>&lt;"+ messages.fromEmail+"&gt;</i><br/><strong>Subject: </strong>"+messages.subject+"<br/><strong>Date: </strong>"+messages.date+"<br/>");
cj('.email_address').val(messages.fromEmail);

if ((messages.forwardedEmail != '')){
cj('#message_left_header').append("<strong>Forwarded by: </strong>"+messages.forwardedName+" <i>&lt;"+ messages.forwardedEmail+"&gt;</i><br/>");
}
Expand Down

0 comments on commit e749b41

Please sign in to comment.