(ignoreSelectable)
| 1123 | // update selected2 and then |
| 1124 | // refresh the col selection state according to values in selected2 |
| 1125 | var selectCols = function(ignoreSelectable) { |
| 1126 | if (!ignoreSelectable) onlyKeepSelectableCols(); |
| 1127 | // if selected2 is not a valide index (e.g., larger than the column number) |
| 1128 | // table.columns(selected2) will fail and result in a blank table |
| 1129 | // this is different from the table.rows(), where the out-of-range indexes |
| 1130 | // doesn't affect at all |
| 1131 | selected2 = $(selected2).filter(table.columns().indexes()).get(); |
| 1132 | table.columns().nodes().flatten().to$().removeClass(selClass); |
| 1133 | if (selected2.length > 0) |
| 1134 | table.columns(selected2).nodes().flatten().to$().addClass(selClass); |
| 1135 | } |
| 1136 | var callback = function() { |
| 1137 | var colIdx = selTarget === 'column' ? table.cell(this).index().column : |
| 1138 | $.inArray(this, table.columns().footer()), |
no test coverage detected