aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets
diff options
context:
space:
mode:
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) => {