Fix to handle if last change user profile photo is null
This commit is contained in:
parent
c8560ec5fb
commit
5bb4423309
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ function updateLastChangeUser() {
|
|||
if (lastchangeuser && lastchangeuserprofile) {
|
||||
var icon = lastchangeui.user.children('i');
|
||||
icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
|
||||
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
|
||||
if (lastchangeuserprofile.photo)
|
||||
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
|
||||
lastchangeui.user.show();
|
||||
lastchangeui.nouser.hide();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue