MCPcopy Create free account
hub / github.com/hackmdio/codimd / updateLastChangeUser

Function updateLastChangeUser

public/js/extra.js:88–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86window.lastchangeuserprofile = null
87
88export 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
103window.owner = null
104window.ownerprofile = null

Callers 1

updateInfoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected