Commit 0c93934cd664ac8439b72c96caffcad5e51751a2
add avatar names as titles for follow render
Ev Bogue committed on 6/13/2018, 11:03:20 PMParent: 584349aaa5ca0d0cff1e326a204f1c0f396301ca
Files changed
tools.js | changed |
tools.js | ||
---|---|---|
@@ -30,9 +30,9 @@ | ||
30 | 30 | followingCount++ |
31 | 31 | followingcount.textContent = followingCount |
32 | 32 | var gotIt = document.getElementById('following:' + msg.value.content.contact.substring(0, 44)) |
33 | 33 | if (gotIt == null) { |
34 | - following.appendChild(h('a#following:'+ msg.value.content.contact.substring(0, 44), {href: '#' + msg.value.content.contact}, h('span.avatar--small', avatar.image(msg.value.content.contact)))) | |
34 | + following.appendChild(h('a#following:'+ msg.value.content.contact.substring(0, 44), {title: avatar.name(msg.value.content.contact).textContent, href: '#' + msg.value.content.contact}, h('span.avatar--small', avatar.image(msg.value.content.contact)))) | |
35 | 35 | } |
36 | 36 | } |
37 | 37 | if (msg.value.content.following == false) { |
38 | 38 | followingcount = document.getElementById('followingcount') |
@@ -70,9 +70,9 @@ | ||
70 | 70 | followerCount++ |
71 | 71 | followcount.textContent = followerCount |
72 | 72 | var gotIt = document.getElementById('followers:' + msg.value.author.substring(0, 44)) |
73 | 73 | if (gotIt == null) { |
74 | - followers.appendChild(h('a#followers:'+ msg.value.author.substring(0, 44), {href: '#' + msg.value.author}, h('span.avatar--small', avatar.image(msg.value.author)))) | |
74 | + followers.appendChild(h('a#followers:'+ msg.value.author.substring(0, 44), {title: avatar.name(msg.value.author).textContent, href: '#' + msg.value.author}, h('span.avatar--small', avatar.image(msg.value.author)))) | |
75 | 75 | } |
76 | 76 | } |
77 | 77 | if (msg.value.content.following == false) { |
78 | 78 | followcount = document.getElementById('followercount') |
Built with git-ssb-web