diff --git a/src/tablefilter_all.js b/src/tablefilter_all.js index a502c433..d807fa40 100644 --- a/src/tablefilter_all.js +++ b/src/tablefilter_all.js @@ -93,7 +93,7 @@ var TF = (function() { for(var i=0; i1) this.filtersRowIndex = this.headersRow+1; - else{ this.filtersRowIndex = 1; this.headersRow = 0; } + if(this.headersRow>1){ + this.filtersRowIndex = this.headersRow+1; + } else { this.filtersRowIndex = 1; this.headersRow = 0; } } //defines tag of the cells containing filters (td/th)