1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

Bugfix: Make checkboxes in downloader work correctly

This commit is contained in:
Starbeamrainbowlabs 2018-10-31 15:05:46 +00:00
parent b122159566
commit 242de1e7de
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -81,8 +81,8 @@
{ {
var url = "pack.php?web=true&modules=", var url = "pack.php?web=true&modules=",
checkboxes = document.querySelectorAll("input[type=checkbox]"); checkboxes = document.querySelectorAll("input[type=checkbox]");
for(var i = 0; i < checkboxes.length; i++) for(var i = 0; i < checkboxes.length; i++) {
{ if(!checkboxes[i].checked) continue;
url += encodeURIComponent(checkboxes[i].id) + ","; url += encodeURIComponent(checkboxes[i].id) + ",";
} }
location.href = url; location.href = url;