aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-19 14:30:40 +0100
committerGitHub <noreply@github.com>2021-01-19 14:30:40 +0100
commit5b5d22a3df1ba948d39524b997ea4c82ee70e646 (patch)
treed6ada06cedf5fdf1789b58cee054777219c4d8d7 /assets
parentffa39719a17982e6a6cac9bc3f758aa12fa69973 (diff)
parent47ac77adbb6a05a79e50143208a00915886a84ab (diff)
downloadShaarli-5b5d22a3df1ba948d39524b997ea4c82ee70e646.tar.gz
Shaarli-5b5d22a3df1ba948d39524b997ea4c82ee70e646.tar.zst
Shaarli-5b5d22a3df1ba948d39524b997ea4c82ee70e646.zip
Merge pull request #1691 from ArthurHoaro/fix/bulk-add-js-checkboxes
Fix: bulk add - private status
Diffstat (limited to 'assets')
-rw-r--r--assets/common/js/shaare-batch.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/common/js/shaare-batch.js b/assets/common/js/shaare-batch.js
index 557325ee..9753137d 100644
--- a/assets/common/js/shaare-batch.js
+++ b/assets/common/js/shaare-batch.js
@@ -4,7 +4,11 @@ const sendBookmarkForm = (basePath, formElement) => {
4 4
5 const formData = new FormData(); 5 const formData = new FormData();
6 [...inputs].forEach((input) => { 6 [...inputs].forEach((input) => {
7 formData.append(input.getAttribute('name'), input.value); 7 if (input.getAttribute('type') === 'checkbox') {
8 formData.append(input.getAttribute('name'), input.checked);
9 } else {
10 formData.append(input.getAttribute('name'), input.value);
11 }
8 }); 12 });
9 13
10 return new Promise((resolve, reject) => { 14 return new Promise((resolve, reject) => {