~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to EventDetails.qml

  • Committer: Kunal Parmar
  • Date: 2014-11-06 13:14:06 UTC
  • mfrom: (535 trunk)
  • mto: This revision was merged to the branch mainline in revision 541.
  • Revision ID: pkunal.parmar@gmail.com-20141106131406-1pb50y9k2ivo5nhh
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        contactModel.clear();
82
82
        if( attendees !== undefined ) {
83
83
            for (var j = 0 ; j < attendees.length ; ++j) {
84
 
                contactModel.append( {"name": attendees[j].name,"participationStatus": attendees[j].participationStatus }  );
 
84
                var name = attendees[j].name.trim().length === 0 ?
 
85
                                attendees[j].emailAddress.replace("mailto:", ""):
 
86
                                attendees[j].name
 
87
 
 
88
                contactModel.append( {"name": name,"participationStatus": attendees[j].participationStatus }  );
85
89
            }
86
90
        }
87
91
    }