aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-19 14:31:15 +0100
committerGitHub <noreply@github.com>2021-01-19 14:31:15 +0100
commitbaac4388b1696fb39f1b0bd621d215bba2da2ca8 (patch)
treefd671680c22f25d1b821b98cc307ae64d0ff2382 /assets
parent5b5d22a3df1ba948d39524b997ea4c82ee70e646 (diff)
parent93175b6e9d5cfa4d4319bd58b9de01824d596288 (diff)
downloadShaarli-baac4388b1696fb39f1b0bd621d215bba2da2ca8.tar.gz
Shaarli-baac4388b1696fb39f1b0bd621d215bba2da2ca8.tar.zst
Shaarli-baac4388b1696fb39f1b0bd621d215bba2da2ca8.zip
Merge pull request #1693 from ArthurHoaro/fix/bulk-add-delete
Fix: bulk add - delete existing link
Diffstat (limited to 'assets')
-rw-r--r--assets/common/js/shaare-batch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/common/js/shaare-batch.js b/assets/common/js/shaare-batch.js
index 9753137d..4a1fdb2e 100644
--- a/assets/common/js/shaare-batch.js
+++ b/assets/common/js/shaare-batch.js
@@ -30,9 +30,9 @@ const sendBookmarkForm = (basePath, formElement) => {
30const sendBookmarkDelete = (buttonElement, formElement) => ( 30const sendBookmarkDelete = (buttonElement, formElement) => (
31 new Promise((resolve, reject) => { 31 new Promise((resolve, reject) => {
32 const xhr = new XMLHttpRequest(); 32 const xhr = new XMLHttpRequest();
33 xhr.open('GET', buttonElement.href); 33 xhr.open('GET', `${buttonElement.href}&source=batch`);
34 xhr.onload = () => { 34 xhr.onload = () => {
35 if (xhr.status !== 200) { 35 if (xhr.status !== 204) {
36 alert(`An error occurred. Return code: ${xhr.status}`); 36 alert(`An error occurred. Return code: ${xhr.status}`);
37 reject(); 37 reject();
38 } else { 38 } else {