Fix: fnFilterAll was a bit dodgy - 10670.

pull/2/head
Allan Jardine 13 years ago
parent 21426cf411
commit cb7b8ac3bb

@ -17,19 +17,10 @@
* }); * });
*/ */
$.fn.dataTableExt.oApi.fnFilterAll = function(oSettings, sInput, iColumn, bRegex, bSmart) { $.fn.dataTableExt.oApi.fnFilterAll = function(oSettings, sInput, iColumn, bRegex, bSmart) {
if ( typeof bRegex == 'undefined' ) { var settings = $.fn.dataTableSettings;
bRegex = false;
} for ( var i=0 ; i<settings.length ; i++ ) {
settings[i].oInstance.fnFilter( sInput, iColumn, bRegex, bSmart);
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;
}; };

Loading…
Cancel
Save