Skip to content

Commit 7f2a38f

Browse files
Increase ignoreColumn array type
Make ignoreColumn can be a array including indexes and field names.
1 parent 6c5c157 commit 7f2a38f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tableExport.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,16 +1285,11 @@
12851285
function isColumnIgnored(rowLength, colIndex) {
12861286
var result = false;
12871287
if (defaults.ignoreColumn.length > 0) {
1288-
if (typeof defaults.ignoreColumn[0] == 'string') {
1289-
if (colNames.length > colIndex && typeof colNames[colIndex] != 'undefined')
1290-
if ($.inArray(colNames[colIndex], defaults.ignoreColumn) != -1)
1291-
result = true;
1292-
}
1293-
else if (typeof defaults.ignoreColumn[0] == 'number') {
12941288
if ($.inArray(colIndex, defaults.ignoreColumn) != -1 ||
1295-
$.inArray(colIndex-rowLength, defaults.ignoreColumn) != -1)
1289+
$.inArray(colIndex-rowLength, defaults.ignoreColumn) != -1||
1290+
(colNames.length > colIndex && typeof colNames[colIndex] != 'undefined'&&
1291+
$.inArray(colNames[colIndex], defaults.ignoreColumn) != -1))
12961292
result = true;
1297-
}
12981293
}
12991294
return result;
13001295
}

0 commit comments

Comments
 (0)