()
| 987 | // function will add rows to selected1 (keep the existing selection), which is |
| 988 | // inconsistent with column and cell selection. |
| 989 | var selectedRows = function() { |
| 990 | var rows = table.rows('.' + selClass); |
| 991 | var idx = rows.indexes().toArray(); |
| 992 | if (!server) { |
| 993 | selected1 = addOne(idx); |
| 994 | return selected1; |
| 995 | } |
| 996 | idx = idx.map(function(i) { |
| 997 | return DT_rows_current[i]; |
| 998 | }); |
| 999 | selected1 = selMode === 'multiple' ? unique(selected1.concat(idx)) : idx; |
| 1000 | return selected1; |
| 1001 | } |
| 1002 | // Change selected1's value based on selectable1, then refresh the row state |
| 1003 | var onlyKeepSelectableRows = function() { |
| 1004 | if (selDisable) { // users can't select; useful when only want backend select |
no test coverage detected