show default avatar if user does not have one

This commit is contained in:
Brian Smith 2013-02-10 18:17:18 -05:00
parent dc504655ce
commit bee5f3d5d5
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,6 @@
};
var _logger = context.JK.logger;
var _sessionLatency;
/**
* Render a single session line into the table.
@ -94,8 +93,9 @@
var id = participant.user.id;
var name = participant.user.name;
var photoUrl = participant.user.photo_url ? participant.user.photo_url : "/assets/shared/avatar_default.jpg";
var musicianVals = {
avatar_url: participant.user.photo_url,
avatar_url: photoUrl,
profile_url: "users/" + id,
musician_name: name,
instruments: instrumentLogoHtml