fix avatar url for session invitation popup notification

This commit is contained in:
Brian Smith 2014-02-23 13:31:18 -05:00
parent 89dd2e9254
commit c79c841b57
1 changed files with 2 additions and 3 deletions

View File

@ -553,8 +553,7 @@
var participants = [];
rest.getSession(payload.session_id).done(function(response) {
$.each(response.participants, function(index, val) {
logger.debug(val.user.photo_url + "," + val.user.name);
participants.push({"photo_url": val.user.photo_url, "name": val.user.name});
participants.push({"photo_url": context.JK.resolveAvatarUrl(val.user.photo_url), "name": val.user.name});
});
}).error(app.ajaxError);
@ -563,7 +562,7 @@
$.each(participants, function(index, val) {
if (index < 4) {
participantHtml += "<tr><td><img class='avatar-small' src='" + val.photo_url + "' /></td><td>" + val.name + "</td></tr>";
participantHtml += "<tr><td><img class='avatar-small' src='" + context.JK.resolveAvatarUrl(val.photo_url) + "' /></td><td>" + val.name + "</td></tr>";
}
});