Bugfix: flag reimpostato su righe ricaricate da datatables
This commit is contained in:
parent
e946fd6ad0
commit
52eb233664
|
@ -835,6 +835,21 @@ function start_datatables() {
|
||||||
$('#mini-loader').show();
|
$('#mini-loader').show();
|
||||||
} else {
|
} else {
|
||||||
$('#mini-loader').hide();
|
$('#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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue