From 5a856f96eba61321378afdc45d4b76b2118f831e Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Thu, 4 May 2023 10:53:15 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06124=20-=20Workaround=20performance=20pr?= =?UTF-8?q?oblem=20on=20the=20modification=20of=20an=20object=20with=20an?= =?UTF-8?q?=20n:n=20relation=20having=20a=20large=20volume=20Add=20new=20b?= =?UTF-8?q?ForceTableRefresh=20flag=20description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/links/links_widget.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/links/links_widget.js b/js/links/links_widget.js index eb70fe1d3..6983e70c0 100644 --- a/js/links/links_widget.js +++ b/js/links/links_widget.js @@ -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');