1
0
Fork 0
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:
Max Guglielmi 2015-07-12 21:51:43 +10:00
parent 588287dc34
commit c49d314048
5 changed files with 14 additions and 32 deletions

View file

@ -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
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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);
}
}

View file

@ -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])),