mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-11 10:57:04 +02:00
Clean jshintrc file
This commit is contained in:
parent
588287dc34
commit
c49d314048
24
.jshintrc
24
.jshintrc
|
@ -1,29 +1,11 @@
|
|||
{
|
||||
// Script URL
|
||||
"-W107": true,
|
||||
// Eval can be harmful
|
||||
"-W061": true,
|
||||
"-W041": true,
|
||||
// Wrap the /regexp/ literal in parens to disambiguate the slash operator
|
||||
"-W092": true,
|
||||
// Reserved words
|
||||
"-W024": true,
|
||||
"scripturl": true,
|
||||
"evil": true,
|
||||
"curly": true,
|
||||
"indent": 4,
|
||||
//"eqeqeq": true,
|
||||
"es3": true,
|
||||
"esnext": true,
|
||||
"unused": true,
|
||||
"maxlen" : 80,
|
||||
"globals": {
|
||||
"Object": true,
|
||||
"module": true,
|
||||
"require": true,
|
||||
"define": true,
|
||||
"window": true,
|
||||
"document": true,
|
||||
"escape": true,
|
||||
"unescape": true,
|
||||
"navigator": true
|
||||
}
|
||||
"maxlen" : 80
|
||||
}
|
4
dist/tablefilter/tablefilter.js
vendored
4
dist/tablefilter/tablefilter.js
vendored
File diff suppressed because one or more lines are too long
6
dist/tablefilter/tf-1.js
vendored
6
dist/tablefilter/tf-1.js
vendored
File diff suppressed because one or more lines are too long
|
@ -142,23 +142,23 @@ export default class FiltersVisibility{
|
|||
let fltRow = tbl.rows[this.filtersRowIndex];
|
||||
let fltRowDisplay = fltRow.style.display;
|
||||
|
||||
if(this.onBeforeShow && fltRowDisplay!=''){
|
||||
if(this.onBeforeShow && fltRowDisplay !== ''){
|
||||
this.onBeforeShow.call(this, this);
|
||||
}
|
||||
if(this.onBeforeHide && fltRowDisplay===''){
|
||||
if(this.onBeforeHide && fltRowDisplay === ''){
|
||||
this.onBeforeHide.call(null, this);
|
||||
}
|
||||
|
||||
fltRow.style.display = fltRowDisplay==='' ? 'none' : '';
|
||||
if(this.enableIcon && !this.btnHtml){
|
||||
this.btnEl.innerHTML = fltRowDisplay==='' ?
|
||||
this.btnEl.innerHTML = fltRowDisplay === '' ?
|
||||
this.expandBtnHtml : this.collapseBtnHtml;
|
||||
}
|
||||
|
||||
if(this.onAfterShow && fltRowDisplay!=''){
|
||||
if(this.onAfterShow && fltRowDisplay !== ''){
|
||||
this.onAfterShow.call(null, this);
|
||||
}
|
||||
if(this.onAfterHide && fltRowDisplay===''){
|
||||
if(this.onAfterHide && fltRowDisplay === ''){
|
||||
this.onAfterHide.call(null, this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1917,7 +1917,7 @@ export class TableFilter{
|
|||
if(nchilds === this.nbCells && !isExludedRow){
|
||||
// this loop retrieves cell data
|
||||
for(let j=0; j<nchilds; j++){
|
||||
if(j != colindex || row[i].style.display != ''){
|
||||
if(j != colindex || row[i].style.display !== ''){
|
||||
continue;
|
||||
}
|
||||
let cell_data = Str.lower(this.getCellData(j, cell[j])),
|
||||
|
|
Loading…
Reference in a new issue