1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-10 14:44:04 +01:00

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

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();
}
}
});
}
})
}