Fix checkbox in datatable.

This commit is contained in:
acognet
2022-01-10 15:09:29 +01:00
parent 9493e31a5d
commit 937313495d

View File

@@ -139,7 +139,7 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
'<span class="row_input"><input type="checkbox" style="display: none;" onclick="checkAllDataTable(\'{{ oUIBlock.GetId() }}\',this.checked,\'{{ oUIBlock.GetOption("sListId") }}\');" class="checkAll" id="field_{{ oUIBlock.GetId() }}_check_all" name="field_{{ oUIBlock.GetId() }}_check_all" title="{{ 'UI:SearchValue:CheckAll'|dict_s }} / {{ 'UI:SearchValue:UncheckAll'|dict_s }}"/></span>'
{% endif %},
type: "html",
data: "",
data: "id",
render: function (data, type, row) {
let oCheckboxElem =
{% if oUIBlock.GetOption("select_mode") != "single" %}