This is an automated email from the git hooks/post-receive script. New commit to branch feature/bug-on-save in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 1f6a277bdc239a2a8741fe0242d1095e27082d23 Author: dcosse <cosse@codelutin.com> Date: Mon Oct 7 15:48:13 2019 +0200 refs #248 fix to avoid js error --- .../src/main/web/tag/poll/Choice.tag.html | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Choice.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Choice.tag.html index 3ec593e5..d317f688 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Choice.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Choice.tag.html @@ -30,15 +30,28 @@ import "../components/time-picker.tag.html"; title="{_t.text}"> <i class="fa fa-pencil" aria-hidden="true"></i> </button> - <input type="text" + <input show="{opts.choice.choiceType === 'TEXT'}" + type="text" ref="choiceText" tabindex="1" - class={opts.choice.choiceType === 'TEXT' ? 'selected' : 'hidden'} + class='selected' placeholder="{_t.text_placeholder}" disabled={opts.disabled} value={valueText} - required={opts.choice.choiceType === 'TEXT'} - pattern={opts.choice.choiceType === 'TEXT' ? ".*[^\\s]+.*" : ""} + required + pattern=".*[^\\s]+.*" + maxlength="255" + title={_t.text_notBlank} + onchange={onTextChange}/> + <input if="{opts.choice.choiceType !== 'TEXT'}" + type="text" + ref="choiceText" + tabindex="1" + class='hidden' + placeholder="{_t.text_placeholder}" + disabled={opts.disabled} + value={valueText} + pattern="" maxlength="255" title={_t.text_notBlank} onchange={onTextChange}/> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.