diff options
Diffstat (limited to 'assets/common/js/shaare-batch.js')
-rw-r--r-- | assets/common/js/shaare-batch.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/common/js/shaare-batch.js b/assets/common/js/shaare-batch.js index 2b438045..4a1fdb2e 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) => { |