diff --git a/bookwyrm/static/js/shared.js b/bookwyrm/static/js/shared.js index 7bac4912..b99459b2 100644 --- a/bookwyrm/static/js/shared.js +++ b/bookwyrm/static/js/shared.js @@ -20,6 +20,10 @@ function reply(e) { return true; } +function selectAll(el) { + el.parentElement.querySelectorAll('[type="checkbox"]') + .forEach(t => t.checked=true); +} function rate_stars(e) { e.preventDefault(); diff --git a/bookwyrm/templates/import_status.html b/bookwyrm/templates/import_status.html index cda74a21..886aea67 100644 --- a/bookwyrm/templates/import_status.html +++ b/bookwyrm/templates/import_status.html @@ -50,6 +50,12 @@ {% endfor %} +