Skip to content

Commit

Permalink
Restrict table selection to id seletable
Browse files Browse the repository at this point in the history
fixes #335
  • Loading branch information
hkalexling committed Sep 9, 2022
1 parent 61d6c2e commit 6f39c2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/js/plugin-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,17 @@ const component = () => {
}
},
selectAll() {
$('tbody > tr').each((i, e) => {
$('tbody#selectable > tr').each((i, e) => {
$(e).addClass('ui-selected');
});
},
clearSelection() {
$('tbody > tr').each((i, e) => {
$('tbody#selectable > tr').each((i, e) => {
$(e).removeClass('ui-selected');
});
},
download() {
const selected = $('tbody > tr.ui-selected').get();
const selected = $('tbody#selectable > tr.ui-selected').get();
if (selected.length === 0) return;

UIkit.modal
Expand Down

0 comments on commit 6f39c2a

Please sign in to comment.