branch feature/multi-ui updated (4b8114dc -> 2d4566d9)
This is an automated email from the git hooks/post-receive script. New change to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from 4b8114dc Better Previous-Next question in results new 59d513db Fix undefined error new 2d4566d9 Tab index The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 2d4566d987c3a14da60a2dd6b5868c48f37e1c4d Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 23 11:09:05 2019 +0200 Tab index commit 59d513db810cca93db2bd1f3ad8c4513faea0974 Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 23 11:07:59 2019 +0200 Fix undefined error Summary of changes: .../src/main/web/tag/poll/EditVote.tag.html | 22 ++++++++++++---------- .../src/main/web/tag/poll/Results.tag.html | 2 +- .../src/main/web/tag/poll/Votes.tag.html | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
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 59d513db810cca93db2bd1f3ad8c4513faea0974 Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 23 11:07:59 2019 +0200 Fix undefined error --- .../src/main/web/tag/poll/EditVote.tag.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html index 0ccbf223..9f397532 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html @@ -323,16 +323,18 @@ if (!this.multi) { this.refs.voterName.value = null; } - this.question.choices.forEach(choice => { - let input = this.refs[choice.id + "_voteValue"]; - if (this.question.voteCountingTypeValue.renderType === "text") { - input.value = ""; - } else if (this.question.voteCountingTypeValue.renderType === "select") { - input.forEach(option => {option.selected = false;}); - } else { - input.checked = ""; - } - }); + if (this.question.voteCountingTypeValue) { + this.question.choices.forEach(choice => { + let input = this.refs[choice.id + "_voteValue"]; + if (this.question.voteCountingTypeValue.renderType === "text") { + input.value = ""; + } else if (this.question.voteCountingTypeValue.renderType === "select") { + input.forEach(option => {option.selected = false;}); + } else { + input.checked = ""; + } + }); + } } this.selectedChoiceNb = 0; this.error = null; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
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 2d4566d987c3a14da60a2dd6b5868c48f37e1c4d Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 23 11:09:05 2019 +0200 Tab index --- pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html | 2 +- pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html index 475f949a..7fc80282 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html @@ -39,7 +39,7 @@ import "../voteCountingType/MajorityJudgmentDetailResult.tag.html"; <button type="button" class="c-button c-button--info" - tabindex="1" + tabindex="2" onclick={nextQuestion} disabled={questionToVote === poll.questions.length - 1}> {_t.nextQuestion} diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html index 11f0b6f5..9a72258d 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html @@ -32,7 +32,7 @@ <button type="button" class="c-button c-button--info" - tabindex="1" + tabindex="2" onclick={nextQuestion} disabled={questionToVote === poll.questions.length - 1}> {_t.nextQuestion} -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm