In the current code, the version check for DataTables determining whether to use the fnGetColumnData function or the new "search: 'applied'" method is phrased like this:
if( widget.oDataTable.fnVersionCheck( '1.10.0' ))
This performs the check for each fnDraw operation. Since the version of DataTables will not change between draw operations, you could check against a set variable instead, such as this:
var usefnGetColumnData = true
var dataTableVersion = $.fn.dataTable.version.split('.');
if (parseInt(dataTableVersion[0]) > 0 && parseInt(dataTableVersion[1]) > 0 ) usefnGetColumnData = false
and in the 'ColumnFilterWidget.prototype.fnDraw' function, replace the fnVersionCheck line with the following if ( usefnGetColumnData === false ), making the final check look like this:
In the current code, the version check for DataTables determining whether to use the fnGetColumnData function or the new "search: 'applied'" method is phrased like this:
This performs the check for each fnDraw operation. Since the version of DataTables will not change between draw operations, you could check against a set variable instead, such as this:
and in the 'ColumnFilterWidget.prototype.fnDraw' function, replace the fnVersionCheck line with the following if ( usefnGetColumnData === false ), making the final check look like this: