N°4481 Fix created elements on 1-n disappearing when table is redrawn

This commit is contained in:
Stephen Abello
2021-12-13 17:00:32 +01:00
parent 1e6a4621ea
commit 4511883baf
3 changed files with 31 additions and 4 deletions

View File

@@ -484,9 +484,9 @@ $(function()
this.indicator.html('<img src="../images/indicator.gif">');
$.post(this.options.submit_to, oParams, function(data){
me.datatable.find('tbody').append(data);
// From data variable we get data entry and insert the first (and only) one
me.datatable.DataTable().row.add(data.data[0]).draw();
$('#datatable_'+me.id+' .dataTables_empty').hide();
//$('#linkedset_'+me.id+' .listResults tbody').append(data);
me._updateTable();
me.indicator.html('');