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,6 +30,7 @@ function updateLastChangeUser() {
|
||||||
if (lastchangeuser && lastchangeuserprofile) {
|
if (lastchangeuser && lastchangeuserprofile) {
|
||||||
var icon = lastchangeui.user.children('i');
|
var icon = lastchangeui.user.children('i');
|
||||||
icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
|
icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
|
||||||
|
if (lastchangeuserprofile.photo)
|
||||||
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
|
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
|
||||||
lastchangeui.user.show();
|
lastchangeui.user.show();
|
||||||
lastchangeui.nouser.hide();
|
lastchangeui.nouser.hide();
|
||||||
|
|
Loading…
Reference in a new issue