Merge pull request #1693 from ArthurHoaro/fix/bulk-add-delete
Fix: bulk add - delete existing link
This commit is contained in:
commit
baac4388b1
3 changed files with 50 additions and 3 deletions
assets/common/js
|
@ -30,9 +30,9 @@ const sendBookmarkForm = (basePath, formElement) => {
|
|||
const sendBookmarkDelete = (buttonElement, formElement) => (
|
||||
new Promise((resolve, reject) => {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', buttonElement.href);
|
||||
xhr.open('GET', `${buttonElement.href}&source=batch`);
|
||||
xhr.onload = () => {
|
||||
if (xhr.status !== 200) {
|
||||
if (xhr.status !== 204) {
|
||||
alert(`An error occurred. Return code: ${xhr.status}`);
|
||||
reject();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue