Restrict table selection to id seletable

fixes #335
This commit is contained in:
Alex Ling 2022-09-09 13:47:30 +00:00
parent 61d6c2e1d9
commit 6f39c2a74c

View File

@ -146,17 +146,17 @@ const component = () => {
} }
}, },
selectAll() { selectAll() {
$('tbody > tr').each((i, e) => { $('tbody#selectable > tr').each((i, e) => {
$(e).addClass('ui-selected'); $(e).addClass('ui-selected');
}); });
}, },
clearSelection() { clearSelection() {
$('tbody > tr').each((i, e) => { $('tbody#selectable > tr').each((i, e) => {
$(e).removeClass('ui-selected'); $(e).removeClass('ui-selected');
}); });
}, },
download() { download() {
const selected = $('tbody > tr.ui-selected').get(); const selected = $('tbody#selectable > tr.ui-selected').get();
if (selected.length === 0) return; if (selected.length === 0) return;
UIkit.modal UIkit.modal