Skip to content

Commit

Permalink
allow clear all filters (exResetAllFilters) when no datatables global…
Browse files Browse the repository at this point in the history
… filter present

#220
  • Loading branch information
vedmack committed Jul 31, 2015
1 parent a36df45 commit 405ccde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.dataTables.yadcf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Yet Another DataTables Column Filter - (yadcf)
*
* File: jquery.dataTables.yadcf.js
* Version: 0.8.9.beta.9 (grab latest stable from https://github.com/vedmack/yadcf/releases)
* Version: 0.8.9.beta.10 (grab latest stable from https://github.com/vedmack/yadcf/releases)
*
* Author: Daniel Reznick
* Info: https://github.com/vedmack/yadcf
Expand Down Expand Up @@ -3728,7 +3728,7 @@ var yadcf = (function ($) {
if (noRedraw !== true) {
//clear global filter
settingsDt.oPreviousSearch.sSearch = '';
if (settingsDt.aanFeatures.f !== 'undefined') {
if (settingsDt.aanFeatures.f !== undefined) {
for (i = 0; i < settingsDt.aanFeatures.f.length; i++) {
$('input', settingsDt.aanFeatures.f[i]).val('');
}
Expand Down

0 comments on commit 405ccde

Please sign in to comment.