From 8124bea16f4d3ec72fa867c781ca889882b6f1dc Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 30 Mar 2021 09:26:00 +0200 Subject: [PATCH] Lists: Fix JS error when dataTables widget is destroyed --- js/dataTables.settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dataTables.settings.js b/js/dataTables.settings.js index 1335a6e5f..630f7a09e 100644 --- a/js/dataTables.settings.js +++ b/js/dataTables.settings.js @@ -203,7 +203,7 @@ $(function () { // revert other modifications here _destroy: function() { this.element.removeClass('itop-datatable'); - $('#sfl_'+me.options.sListId).fieldsorter('destroy'); + $('#sfl_'+this.options.sListId).fieldsorter('destroy'); }, // _setOptions is called with a hash of all options that are changing