Lists: Fix JS error when dataTables widget is destroyed

This commit is contained in:
Molkobain
2021-03-30 09:26:00 +02:00
parent 62165a2a0d
commit 8124bea16f

View File

@@ -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