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 962ea5143a69b9f20329d0c9a52dd7f4669b7ec9 Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 9 15:31:09 2019 +0200 Choices are now displayed in order vote --- .../src/main/web/tag/poll/EditVoteOrder.tag.html | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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 6c3e3a5a..fced717d 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 @@ -145,15 +145,8 @@ }); } - this.onPollChange = poll2 => { - //reload question - var _this = this; - poll2.questions.forEach(function(question) { - if (_this.question.id === question.id) { - _this.question = question; - } - }); - this.poll = poll2; + this.onQuestionChange = question2 => { + this.question = question2; this.pollTypeRound = this.question.voteCountingType && (this.question.voteCountingType === 7 || this.question.voteCountingType === 6); this.maxChoiceNumber = this.question.voteCountingConfig.maxChoiceNumber; this.update(); @@ -163,7 +156,7 @@ this.listen("resize", () => this.placeChoices(true)); this.listen("orientationchange", () => this.placeChoices(true)); - //this.listen("poll", this.onPollChange); + this.listen("question", this.onQuestionChange); this.listen("user", (user, oldUser) => { if (user !== oldUser) { if (user && this.refs.voterName && this.refs.voterName.value !== "") { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.