Skip to content
Permalink
Browse files

Fixed issue #14962: Checkbox radio Y scale don't shown in little scre…

…en (partial)

Fixed issue #14966: Array checkbox : all EM usage in same page is broken
Dev: revert 3955ef7
Dev: Add comments
Dev: remove the hidden value='' because ajax mode is broken
  • Loading branch information...
Shnoulle committed Jun 6, 2019
1 parent 2f4cec2 commit 5e262a6901848a03430d814bba8e9d55f3a239f9
@@ -4,30 +4,27 @@
* @var $dataTitle
* @var $ld
* @var $answertypeclass
* @var $value $myvalue
* @var $value $myvalue : 1 VS 0 or '' : OK to use it as boolean directly
* @var $myfname2
* @var $setmyvalue
* @var $checkconditionFunction
* @var $extraclass
#}

<!-- answer_td_checkboxes -->
<td class="answer_cell_{{ ld }} question-item answer-item {{ answertypeclass }}-item checkbox-item">

<!-- Used by EM , don't update id *-->
{{ C.Html.hiddenField("java"~myfname2, C.Html.encode( value ),({
'id' : "java"~myfname2,
'id' : "answer"~myfname2,
'disabled' : true,
}))
}}

<input
type="checkbox"
name="{{ myfname2 }}"
id="answer{{ myfname2 }}"
class="{{ extraclass }}",
{{ setmyvalue }}
value="1"
/>
<label for="answer{{ myfname2 }}" class="checkbox-label control-label"></label>
<!-- Don't add hidden input to send empty value because ajax mode is broken ! -->
{{ C.Html.checkBox(myfname2,value,({
'class' : extraclass,
'id' : "cbox"~myfname2,
'value' : "1"
}))
}}
<label for="cbox{{ myfname2 }}" class="ls-label-xs-visibility">{{ dataTitle }}</label>
</td>
<!-- end of answer_td_checkboxes -->

0 comments on commit 5e262a6

Please sign in to comment.
You can’t perform that action at this time.