git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Commit 4d0fa57fa0b07dd3278b3f41e365de19466d62ee

because star query is live, there is no need to also change the button onclick

Ev Bogue committed on 6/2/2018, 6:47:39 PM
Parent: 709031b9b5a7cac79aae8afd99e9ff70c761f597

Files changed

tools.jschanged
tools.jsView
@@ -25,9 +25,8 @@
2525 vote.vote.value = 1
2626 sbot.publish(vote, function (err, voted) {
2727 if(err) throw err
2828 console.log('Starred!', voted)
29- votebutton.replaceChild(unstar, star)
3029 })
3130 }
3231 }
3332 )
@@ -38,9 +37,8 @@
3837 vote.vote.value = -1
3938 sbot.publish(vote, function (err, voted) {
4039 if(err) throw err
4140 console.log('Unstarred!', voted)
42- votebutton.replaceChild(star, unstar)
4341 })
4442 }
4543 }
4644 )

Built with git-ssb-web