Do not load gallery on API access
This commit is contained in:
parent
de9c37e617
commit
350ab12fc4
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ class lgAdmin {
|
|||
data.append('csrfmiddlewaretoken', this.csrfToken);
|
||||
fetch(`/photo/${this.photoId}/delete/`, {
|
||||
method: "POST",
|
||||
redirect: "manual", // do not load gallery again
|
||||
body: data,
|
||||
credentials: 'same-origin',
|
||||
}).then(res => {
|
||||
|
|
@ -74,6 +75,7 @@ class lgAdmin {
|
|||
data.append('csrfmiddlewaretoken', this.csrfToken);
|
||||
fetch(`/photo/${this.photoId}/report/`, {
|
||||
method: "POST",
|
||||
redirect: "manual", // do not load gallery again
|
||||
body: data,
|
||||
credentials: 'same-origin',
|
||||
}).then(res => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue