lg-admin: do not check res value
This commit is contained in:
parent
2447735aec
commit
c20ad43758
1 changed files with 14 additions and 18 deletions
|
|
@ -54,14 +54,12 @@ class lgAdmin {
|
|||
body: data,
|
||||
credentials: 'same-origin',
|
||||
}).then(res => {
|
||||
if(res.ok) {
|
||||
console.log("Deletion complete, response:", res);
|
||||
|
||||
// Remove HTML element
|
||||
document.querySelectorAll(`[data-slide-name='${this.photoId}']`)[0].remove()
|
||||
this.core.goToNextSlide();
|
||||
this.core.refresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -79,7 +77,6 @@ class lgAdmin {
|
|||
body: data,
|
||||
credentials: 'same-origin',
|
||||
}).then(res => {
|
||||
if(res.ok) {
|
||||
console.log("Report complete, response:", res);
|
||||
|
||||
// Update HTML element
|
||||
|
|
@ -91,7 +88,6 @@ class lgAdmin {
|
|||
} else {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue