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 6213b014aed1cdfb0849b567f29d7584083eae87 Author: jcouteau <couteau@codelutin.com> Date: Mon Oct 7 10:24:16 2019 +0200 Edit the right question settings --- .../src/main/web/tag/poll/EditQuestionsSettings.tag.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditQuestionsSettings.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditQuestionsSettings.tag.html index b91f453e..e82f78f0 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditQuestionsSettings.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditQuestionsSettings.tag.html @@ -165,9 +165,18 @@ import "../voteCountingType/MajorityJudgmentConfig.tag.html"; this.voteCountingTypes = new Map(this.form.voteCountingTypes.map((t) => [t.id.toString(), t])); this.on("mount", () => { + this.updateQuestionType(); + }); + + this.updateQuestionType = () => { this.refs["voteCountingType" + this.question.voteCountingType].checked = true; this.refs.voteCountingType.value = this.question.voteCountingType; this.updateVoteCountingTypeHelp(); + }; + + this.listen("questionEditedChanged", () => { + this.question = this.form.model.questions[this.form.questionEdited]; + this.updateQuestionType(); }); this.toggleVoteCountingTypeHelp = () => { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.