N°4478 Fix line selection (global and unique) not checking checkbox anymore

This commit is contained in:
Pierre Goiffon
2021-11-26 11:36:23 +01:00
parent 252562ace9
commit 5e48400cb1
2 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@
"dom": '<"row"<"col-sm-6"l><"col-sm-6"<f><"visible-xs"p>>>t<"row"<"col-sm-6"i><"col-sm-6"p>>',
"columns": getColumnsDefinition(),
"select": {
"style": "{{ (bMultipleSelect) ? 'multi' : 'os' }}"
"style": "{{ (bMultipleSelect) ? 'multi' : 'single' }}"
},
"rowId": "id",
"rowCallback": function(oRow, oData){
@@ -228,7 +228,7 @@
var aData = oTable.rows(indexes).data().toArray();
// Checking input
$('#{{ sTableId }} tr[role="row"].selected td:first-child input').prop('checked', true);
$('#{{ sTableId }} tr[id].selected td:first-child input').prop('checked', true);
// Saving values in temp array
for(var i in aData)
{
@@ -243,7 +243,7 @@
var aData = oTable.rows(indexes).data().toArray();
// Checking input
$('#{{ sTableId }} tr[role="row"]:not(.selected) td:first-child input').prop('checked', false);
$('#{{ sTableId }} tr[id]:not(.selected) td:first-child input').prop('checked', false);
// Saving values in temp array
for(var i in aData)
{

View File

@@ -265,7 +265,7 @@ EOF
var aData = oTable_{$this->oField->GetGlobalId()}.rows(indexes).data().toArray();
// Checking input
$('#{$sTableId} tbody tr[role="row"].selected td:first-child input').prop('checked', true);
$('#{$sTableId} tbody tr[id].selected td:first-child input').prop('checked', true);
// Saving values in temp array
for(var i in aData)
{
@@ -282,7 +282,7 @@ EOF
var aData = oTable_{$this->oField->GetGlobalId()}.rows(indexes).data().toArray();
// Checking input
$('#{$sTableId} tbody tr[role="row"]:not(.selected) td:first-child input').prop('checked', false);
$('#{$sTableId} tbody tr[id]:not(.selected) td:first-child input').prop('checked', false);
// Saving values in temp array
for(var i in aData)
{