mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-18 00:19:50 +01:00
Extended eslint to tests
This commit is contained in:
parent
1691f38368
commit
6f0a009200
21 changed files with 239 additions and 194 deletions
|
|
@ -609,7 +609,7 @@ export class TableFilter {
|
|||
Mod.paging = new Paging(this);
|
||||
Mod.paging.init();
|
||||
} else{
|
||||
Mod.paging.reset();
|
||||
Mod.paging.reset();
|
||||
}
|
||||
}
|
||||
if(this.btnReset){
|
||||
|
|
@ -821,7 +821,9 @@ export class TableFilter {
|
|||
|
||||
// Require pattern for Webpack
|
||||
require(['./' + modulePath], (mod)=> {
|
||||
/* eslint-disable */
|
||||
let inst = new mod.default(this, ext);
|
||||
/* eslint-enable */
|
||||
inst.init();
|
||||
this.ExtRegistry[name] = inst;
|
||||
});
|
||||
|
|
@ -1415,12 +1417,12 @@ export class TableFilter {
|
|||
|
||||
//multiple search parameter operator ||
|
||||
let sAOrSplit = sA.toString().split(this.orOperator),
|
||||
//multiple search || parameter boolean
|
||||
hasMultiOrSA = sAOrSplit.length > 1,
|
||||
//multiple search parameter operator &&
|
||||
sAAndSplit = sA.toString().split(this.anOperator),
|
||||
//multiple search && parameter boolean
|
||||
hasMultiAndSA = sAAndSplit.length > 1;
|
||||
//multiple search || parameter boolean
|
||||
hasMultiOrSA = sAOrSplit.length > 1,
|
||||
//multiple search parameter operator &&
|
||||
sAAndSplit = sA.toString().split(this.anOperator),
|
||||
//multiple search && parameter boolean
|
||||
hasMultiAndSA = sAAndSplit.length > 1;
|
||||
|
||||
//detect operators or array query
|
||||
if(Types.isArray(sA) || hasMultiOrSA || hasMultiAndSA){
|
||||
|
|
@ -1922,12 +1924,12 @@ export class TableFilter {
|
|||
return;
|
||||
}
|
||||
tbl = tbl || this.tbl;
|
||||
let rIndex;
|
||||
if(rowIndex === undefined){
|
||||
rIndex = tbl.rows[0].style.display!='none' ? 0 : 1;
|
||||
} else{
|
||||
rIndex = rowIndex;
|
||||
}
|
||||
// let rIndex;
|
||||
// if(rowIndex === undefined){
|
||||
// rIndex = tbl.rows[0].style.display!='none' ? 0 : 1;
|
||||
// } else{
|
||||
// rIndex = rowIndex;
|
||||
// }
|
||||
|
||||
setWidths.call(this);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue