N°6124 - Workaround performance problem on the modification of an object with an n:n relation having a large volume

Add new bForceTableRefresh flag description
This commit is contained in:
Benjamin Dalsass
2023-05-04 10:53:15 +02:00
parent c7e8c70ced
commit 5a856f96eb

View File

@@ -84,6 +84,13 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
this.UpdateButtons();
};
/**
* Remove.
*
* @param oRowElement tr element to remove
* @param bForceTableRefresh be careful with this flag and performance impact @see N°6124
* @constructor
*/
this.Remove = function(oRowElement, bForceTableRefresh = true){
$('#datatable_'+me.id).DataTable().row($(oRowElement)).remove();
var oCheckbox = $(oRowElement).find('.selection');