Skip to content

Commit

Permalink
Fixed issue #16316: Condition for list radio questions with question …
Browse files Browse the repository at this point in the history
…design "image_select" broken for questions on the same page (#1436)
  • Loading branch information
gabrieljenik committed Jun 29, 2020
1 parent 3dff850 commit c0bce49
Showing 1 changed file with 7 additions and 9 deletions.
Expand Up @@ -13,7 +13,6 @@
* @var code
* @var answer
* @var checkedState
* @var sCheckconditionFunction
* @var myfname
* @var sValue
**** Additional attributes:
Expand All @@ -34,7 +33,7 @@ question_template_attribute.horizontal_scroll : {{question_template_attribute.
</p>#}

<!-- answer_row -->
<li id='javatbd{{ myfname }}' class='question-item answer-item checkbox-item imageselect-listitem {{ extra_class }}' {{ sDisplayStyle }} >
<li id='javatbd{{ myfname }}' class='question-item answer-item radio-item imageselect-listitem {{ extra_class }}' {{ sDisplayStyle }} >
<div class="imageselect-container">
<input
class="imageselect-checkbox"
Expand All @@ -43,13 +42,12 @@ question_template_attribute.horizontal_scroll : {{question_template_attribute.
id="answer{{ name}}{{ code }}"
value="{{code}}"
{{ checkedState }}
onclick='cancelBubbleThis(event); {{ sCheckconditionFunction }}'
/>
<label for="answer{{ name }}{{ code }}" class="imageselect-label" onclick='cancelBubbleThis(event); {{ sCheckconditionFunction }}'>
<label for="answer{{ name }}{{ code }}" class="imageselect-label">

<img class="unforce-height" src="{{ answer }}"
style="{%if question_template_attribute.fix_width > 1%}
width: {{question_template_attribute.fix_width}}px
<img class="unforce-height" src="{{ answer }}"
style="{%if question_template_attribute.fix_width > 1%}
width: {{question_template_attribute.fix_width}}px
{% endif %} {%if question_template_attribute.fix_height > 1%}
height: {{question_template_attribute.fix_height}}px
{% endif %}"/>
Expand All @@ -64,9 +62,9 @@ question_template_attribute.horizontal_scroll : {{question_template_attribute.
</li>
<script>
var imageselectjs_{{name}} = new IMAGESELECT("{{ name}}{{ code }}", {
keepAspect: {{question_template_attribute.keep_aspect ? 'true' : 'false'}},
keepAspect: {{question_template_attribute.keep_aspect ? 'true' : 'false'}},
horizontalScroll: {{question_template_attribute.horizontal_scroll ? 'true' : 'false'}},
crop_or_resize: {{question_template_attribute.crop_or_resize ? true : false}}
});
});
</script>
<!-- end of answer_row -->

0 comments on commit c0bce49

Please sign in to comment.