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 PMParent: 709031b9b5a7cac79aae8afd99e9ff70c761f597
Files changed
tools.js | changed |
tools.js | ||
---|---|---|
@@ -25,9 +25,8 @@ | ||
25 | 25 | vote.vote.value = 1 |
26 | 26 | sbot.publish(vote, function (err, voted) { |
27 | 27 | if(err) throw err |
28 | 28 | console.log('Starred!', voted) |
29 | - votebutton.replaceChild(unstar, star) | |
30 | 29 | }) |
31 | 30 | } |
32 | 31 | } |
33 | 32 | ) |
@@ -38,9 +37,8 @@ | ||
38 | 37 | vote.vote.value = -1 |
39 | 38 | sbot.publish(vote, function (err, voted) { |
40 | 39 | if(err) throw err |
41 | 40 | console.log('Unstarred!', voted) |
42 | - votebutton.replaceChild(star, unstar) | |
43 | 41 | }) |
44 | 42 | } |
45 | 43 | } |
46 | 44 | ) |
Built with git-ssb-web