| 86 | window.lastchangeuserprofile = null |
| 87 | |
| 88 | export function updateLastChangeUser () { |
| 89 | if (window.lastchangeui) { |
| 90 | if (window.lastchangeuser && window.lastchangeuserprofile) { |
| 91 | const icon = window.lastchangeui.user.children('i') |
| 92 | icon.attr('title', window.lastchangeuserprofile.name).tooltip('fixTitle') |
| 93 | if (window.lastchangeuserprofile.photo) { icon.attr('style', `background-image:url(${window.lastchangeuserprofile.photo})`) } |
| 94 | window.lastchangeui.user.show() |
| 95 | window.lastchangeui.nouser.hide() |
| 96 | } else { |
| 97 | window.lastchangeui.user.hide() |
| 98 | window.lastchangeui.nouser.show() |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | window.owner = null |
| 104 | window.ownerprofile = null |