diff --git a/api/fnFilterAll.js b/api/fnFilterAll.js index b4dcf78..292b6cc 100644 --- a/api/fnFilterAll.js +++ b/api/fnFilterAll.js @@ -17,19 +17,10 @@ * }); */ -$.fn.dataTableExt.oApi.fnFilterAll = function(oSettings, sInput, iColumn, bRegex, bSmart) { - if ( typeof bRegex == 'undefined' ) { - bRegex = false; - } - - if ( typeof bSmart == 'undefined' ) { - bSmart = true; - } - - for (var i in this.dataTableSettings) { - jQuery.fn.dataTableExt.iApiIndex = i; - this.fnFilter(sInput, iColumn, bRegex, bSmart); - } - - jQuery.fn.dataTableExt.iApiIndex = 0; +$.fn.dataTableExt.oApi.fnFilterAll = function(oSettings, sInput, iColumn, bRegex, bSmart) { + var settings = $.fn.dataTableSettings; + + for ( var i=0 ; i