From 6f39c2a74ccf72b9439d44e0a2d1478ec948e7c6 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Fri, 9 Sep 2022 13:47:30 +0000 Subject: [PATCH] Restrict table selection to id seletable fixes #335 --- public/js/plugin-download.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/plugin-download.js b/public/js/plugin-download.js index 18a5be1..ebdb680 100644 --- a/public/js/plugin-download.js +++ b/public/js/plugin-download.js @@ -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