git ssb

16+

Dominic / patchbay



Commit 66f1a12dfe0245c72e4092b63782428b6eceabbf

Show the names of digs on hover

Anders Rune Jensen committed on 12/16/2016, 10:14:22 AM
Parent: 5d532aa9c486a50cd8f14bc6ed99c16741f71391

Files changed

modules_basic/like.jschanged
modules_basic/like.jsView
@@ -9,8 +9,9 @@
99 //var message_link = plugs.first(exports.message_link = [])
1010 //var sbot_links = plugs.first(exports.sbot_links = [])
1111
1212 exports.needs = {
13 + avatar_name: 'first',
1314 message_confirm: 'first',
1415 message_link: 'first',
1516 sbot_links: 'first'
1617 }
@@ -48,11 +49,20 @@
4849 }
4950
5051 if(votes.length === 1)
5152 digs.textContent = ' 1 Dig'
52- if(votes.length > 1)
53 + else if(votes.length > 1)
5354 digs.textContent = ' ' + votes.length + ' Digs'
5455
56 + pull(
57 + pull.values(votes.map(vote => {
58 + return api.avatar_name(vote.source)
59 + })),
60 + pull.collect(function (err, ary) {
61 + digs.title = ary.map(x => x.innerHTML).join(" ")
62 + })
63 + )
64 +
5565 return digs
5666 }
5767
5868 exports.message_action = function (msg, sbot) {

Built with git-ssb-web