Fix to handle if last change user profile photo is null

This commit is contained in:
Cheng-Han, Wu 2016-05-16 13:54:00 +08:00
parent c8560ec5fb
commit 5bb4423309

View file

@ -30,6 +30,7 @@ function updateLastChangeUser() {
if (lastchangeuser && lastchangeuserprofile) {
var icon = lastchangeui.user.children('i');
icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
if (lastchangeuserprofile.photo)
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
lastchangeui.user.show();
lastchangeui.nouser.hide();