From 405ccded2e8f026866420c3f429386850dc6ad0e Mon Sep 17 00:00:00 2001 From: vedmack Date: Sat, 1 Aug 2015 00:33:24 +0300 Subject: [PATCH] allow clear all filters (exResetAllFilters) when no datatables global filter present https://github.com/vedmack/yadcf/issues/220 --- jquery.dataTables.yadcf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.dataTables.yadcf.js b/jquery.dataTables.yadcf.js index 6c433e3..2b7f5dc 100644 --- a/jquery.dataTables.yadcf.js +++ b/jquery.dataTables.yadcf.js @@ -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 @@ -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(''); }