/** * Remove all filtering that has been applied to a DataTable, be it column * based filtering or global filtering. * * DataTables 1.10+ new API can achieve the same effect as this plug-in, without * the requirement for plug-ins using the following chaining: * * ```js * var table = $('#example').DataTable(); * table * .search( '' ) * .columns().search( '' ) * .draw(); * ``` * * Please use the new API in DataTables 1.10+ is you are able to do so. * * @name fnFilterClear * @summary Remove all column and global filters applied to a table * @author [Allan Jardine](http://sprymedia.co.uk) * @deprecated * * @example * $(document).ready(function() { * var table = $('#example').dataTable(); * * // Perform a filter * table.fnFilter('Win'); * table.fnFilter('Trident', 0); * * // Remove all filtering * table.fnFilterClear(); * } ); */ jQuery.fn.dataTableExt.oApi.fnFilterClear = function ( oSettings ) { var i, iLen; /* Remove global filter */ oSettings.oPreviousSearch.sSearch = ""; /* Remove the text of the global filter in the input boxes */ if ( typeof oSettings.aanFeatures.f != 'undefined' ) { var n = oSettings.aanFeatures.f; for ( i=0, iLen=n.length ; i