This is an automated email from the git hooks/post-receive script. New commit to branch feature/april in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 0539cb96f834dda800b96bf551a12dcc05df56dd Author: jcouteau <couteau@codelutin.com> Date: Tue Jan 8 09:50:10 2019 +0100 Can now edit choices in UI --- pollen-ui-riot-js/src/main/web/tag/poll/Choices.tag.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Choices.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Choices.tag.html index 8b73225e..0b5e2f03 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Choices.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Choices.tag.html @@ -22,7 +22,7 @@ <Choices> <h4>{_t.title}</h4> <div class="choicesList" ref="choicesList"></div> - <Draggable each={choice, index in form.choices} + <Draggable each={choice, index in form.model.questions[0].choices} on-drop={dropChoice} ref="choicesDrag" class="choice-draggable"> @@ -149,7 +149,7 @@ let index = 0; choicesDrag.forEach(choice1 => { let choice1Y = choice1.getY(); - if (y > choice1Y) { // le choix est palcé strictement après + if (y > choice1Y) { // le choix est placé strictement après index = choice1.choice.choiceOrder + 1; } this.logger.log("drop :" + choice1Y + ", " + y + ", " + choice1.choice.choiceOrder + " ==> " + index); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.