Bugfix: flag reimpostato su righe ricaricate da datatables

This commit is contained in:
Matteo 2018-11-06 10:02:08 +01:00
parent e946fd6ad0
commit 52eb233664
1 changed files with 15 additions and 0 deletions

View File

@ -835,6 +835,21 @@ function start_datatables() {
$('#mini-loader').show();
} else {
$('#mini-loader').hide();
//Reimposto il flag sulle righe ricaricate selezionate in precedenza
var selected = $this.data('selected').split(';');
table.rows().every( function ( rowIdx, tableLoop, rowLoop ) {
var object_span = $.parseHTML(this.data()[0])[0];
var id = $(object_span).data('id');
for(i=0;i<selected.length;i++){
var value = selected[i];
if(value==id){
table.row(':eq('+rowIdx+')', { page: 'current' }).select();
}
}
});
}
})
}