From 9c9f3f007bcefac861384396073ba4eca974c1d1 Mon Sep 17 00:00:00 2001 From: Sebb Date: Fri, 21 Feb 2025 13:48:41 +0000 Subject: [PATCH] 'voted once' is misleading There is no distinction between one vote and many: either there has been a vote on an issue or not, so saying 'voted once' is misleading. Either drop the 'once' as per this PR, or change it to 'at least once'. --- pysteve/www/htdocs/js/steve_rest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pysteve/www/htdocs/js/steve_rest.js b/pysteve/www/htdocs/js/steve_rest.js index 4aa7675..1e601fd 100644 --- a/pysteve/www/htdocs/js/steve_rest.js +++ b/pysteve/www/htdocs/js/steve_rest.js @@ -871,7 +871,7 @@ function renderElectionFrontpage(response, el) { if (issue.hasVoted) { outer.setAttribute("style", "background: linear-gradient(to bottom, #d8d8d8 0%,#aaaaaa 100%); opacity: 0.55;") - outer.setAttribute("title", "Notice: You have already voted once on this issue. You may recast your vote if you like.") + outer.setAttribute("title", "Notice: You have already voted on this issue. You may recast your vote if you like.") } else { outer.setAttribute("title", "You have not yet voted on this issue"); } @@ -964,7 +964,7 @@ function renderElectionBulk(response, el) { // details if (issue.hasVoted) { outer.setAttribute("style", "margin-bottom: 15px; background: linear-gradient(to bottom, #d8d8d8 0%,#aaaaaa 100%);") - outer.setAttribute("title", "Notice: You have already voted once on this issue") + outer.setAttribute("title", "Notice: You have already voted on this issue") } else { outer.setAttribute("title", "You have not yet voted on this issue"); } @@ -1353,4 +1353,4 @@ function setVoteTypes(code, response, state) { alert(response.message) } -} \ No newline at end of file +}