()
| 875 | |
| 876 | // MARK: safe refresh |
| 877 | refreshSelected() { |
| 878 | for ( const element of MA.query(`.mod-row.${this.selectClass}`) ) { |
| 879 | element.classList.remove(this.selectClass) |
| 880 | } |
| 881 | for ( const element of MA.query('scroller-item.bg-success') ) { |
| 882 | element.classList.remove('bg-success') |
| 883 | } |
| 884 | |
| 885 | for ( const id of this.track.selected ) { |
| 886 | if ( !id.startsWith(this.track.openCollection) ) { |
| 887 | this.track.selected.delete(id) |
| 888 | } else { |
| 889 | MA.safeClsAdd(id, this.selectClass) |
| 890 | MA.safeClsAdd(`${id}--scroller`, 'bg-success') |
| 891 | } |
| 892 | } |
| 893 | this.select.count() |
| 894 | } |
| 895 | |
| 896 | // MARK: selection toggles |
| 897 | forceSelectOnly(nv = true) { |
no test coverage detected