mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-11 10:57:04 +02:00
Code formatting
This commit is contained in:
parent
f484b2d64a
commit
2f00f5acf7
|
@ -93,7 +93,7 @@ var TF = (function() {
|
||||||
|
|
||||||
for(var i=0; i<this.nbCells; i++){
|
for(var i=0; i<this.nbCells; i++){
|
||||||
if(this['col'+i]==undefined)
|
if(this['col'+i]==undefined)
|
||||||
this['col'+i] = (f['col_'+i]==undefined)
|
this['col'+i] = (f['col_'+i]===undefined)
|
||||||
? this.fltTypeInp : f['col_'+i].tf_LCase();
|
? this.fltTypeInp : f['col_'+i].tf_LCase();
|
||||||
this.fltCol.push(this['col'+i]);
|
this.fltCol.push(this['col'+i]);
|
||||||
}
|
}
|
||||||
|
@ -118,10 +118,11 @@ var TF = (function() {
|
||||||
}
|
}
|
||||||
/*** ***/
|
/*** ***/
|
||||||
this.filtersRowIndex = f.filters_row_index!=undefined ? f.filters_row_index : 0;
|
this.filtersRowIndex = f.filters_row_index!=undefined ? f.filters_row_index : 0;
|
||||||
this.headersRow = f.headers_row_index!=undefined ? f.headers_row_index : (this.filtersRowIndex==0 ? 1 : 0);
|
this.headersRow = f.headers_row_index!=undefined ? f.headers_row_index : (this.filtersRowIndex==0 ? 1 : 0);
|
||||||
if(this.gridLayout){
|
if(this.gridLayout){
|
||||||
if(this.headersRow>1) this.filtersRowIndex = this.headersRow+1;
|
if(this.headersRow>1){
|
||||||
else{ this.filtersRowIndex = 1; this.headersRow = 0; }
|
this.filtersRowIndex = this.headersRow+1;
|
||||||
|
} else { this.filtersRowIndex = 1; this.headersRow = 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
//defines tag of the cells containing filters (td/th)
|
//defines tag of the cells containing filters (td/th)
|
||||||
|
|
Loading…
Reference in a new issue