From fdca5b1c60eb801ed7f1cdc05ebdddef98269c17 Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 17 Sep 2019 00:24:00 +0900 Subject: [PATCH] When complete vote, not refresh status --- app/js/tl/poll.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/js/tl/poll.js b/app/js/tl/poll.js index a9e67235..c3da6d90 100644 --- a/app/js/tl/poll.js +++ b/app/js/tl/poll.js @@ -127,6 +127,8 @@ function voteMastodonrefresh(acct_id, id) { var choice = choices[keyc]; if (!json.voted) { votesel = 'voteSelMastodon(\'' + acct_id + '\',\'' + json.id + '\',' + keyc + ',' + json.multiple + ')'; + }else { + votesel ="" } poll = poll + '
' + escapeHTML(choice.title) + '(' + choice.votes_count + ')
'; });