| 104 | window.ownerprofile = null |
| 105 | |
| 106 | export function updateOwner () { |
| 107 | if (ownerui) { |
| 108 | if (window.owner && window.ownerprofile && window.owner !== window.lastchangeuser) { |
| 109 | const icon = ownerui.children('i') |
| 110 | icon.attr('title', window.ownerprofile.name).tooltip('fixTitle') |
| 111 | const styleString = `background-image:url(${window.ownerprofile.photo})` |
| 112 | if (window.ownerprofile.photo && icon.attr('style') !== styleString) { icon.attr('style', styleString) } |
| 113 | ownerui.show() |
| 114 | } else { |
| 115 | ownerui.hide() |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | // get title |
| 121 | function getTitle (view) { |