branch feature/multi-ui updated (615da406 -> 6213b014)
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 615da406 Lint new 6213b014 Edit the right question settings The 1 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 6213b014aed1cdfb0849b567f29d7584083eae87 Author: jcouteau <couteau@codelutin.com> Date: Mon Oct 7 10:24:16 2019 +0200 Edit the right question settings Summary of changes: .../src/main/web/tag/poll/EditQuestionsSettings.tag.html | 9 +++++++++ 1 file changed, 9 insertions(+) -- 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 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>.
participants (1)
-
chorem.org scm