mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°4478 Fix line selection (global and unique) not checking checkbox anymore
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user