This is an automated email from the git hooks/post-receive script. New commit to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit a09e252e8178bce0f36037acc5aaca228e7a1703 Author: jcouteau <couteau@codelutin.com> Date: Thu Oct 10 16:07:13 2019 +0200 Keep ones name on VoteOrder too --- pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html index fced717d..c1fe943b 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html @@ -139,6 +139,7 @@ this.poll = poll; this.question = opts.question; + this.multi = opts.multi; if (this.question) { this.poll.loadForVotes(this.question.id).then(() => { this.update(); @@ -153,8 +154,13 @@ this.placeChoices(true); }; + this.onMultiChange = multi2 => { + this.multi = multi2; + }; + this.listen("resize", () => this.placeChoices(true)); this.listen("orientationchange", () => this.placeChoices(true)); + this.listen("multi", this.onMultiChange); this.listen("question", this.onQuestionChange); this.listen("user", (user, oldUser) => { @@ -345,7 +351,9 @@ this.resetVoteForm = () => { if (this.poll.canVote) { - this.refs.voterName.value = null; + if (!this.multi) { + this.refs.voterName.value = null; + } this.getChoicesTab().forEach(choice => { choice.voteOrder = undefined; choice.stashed = false; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.