Merge pull request #1691 from ArthurHoaro/fix/bulk-add-js-checkboxes
Fix: bulk add - private status
This commit is contained in:
commit
5b5d22a3df
1 changed files with 5 additions and 1 deletions
|
@ -4,7 +4,11 @@ const sendBookmarkForm = (basePath, formElement) => {
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
[...inputs].forEach((input) => {
|
[...inputs].forEach((input) => {
|
||||||
formData.append(input.getAttribute('name'), input.value);
|
if (input.getAttribute('type') === 'checkbox') {
|
||||||
|
formData.append(input.getAttribute('name'), input.checked);
|
||||||
|
} else {
|
||||||
|
formData.append(input.getAttribute('name'), input.value);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
Loading…
Reference in a new issue