pivotal-energy-solutions/django-datatable-view

critical deprecation: filter delay functions / plugin

gotexis opened this issue · 1 comments

Thank the devs for this great project which I have adopted extensively in my project.

According to DataTable > 1.10, the filter delay options should be set with following options:

$('#example').DataTable( {
  searchDelay: 350
} );

However, currently the project uses fnSetFilteringDelay which is deprecated after DT1.10.

Can someone see how it can be fixed?

My current workaround is as follows:
manually create 'static/js/datatableview.min.js'

put searchDelay below as follows:

options = $.extend({}, datatableview.defaults, opts, {
   "searchDelay": 400,
   "aaSorting": sorting_options,
   "aoColumns": column_options,
   ...