Skip to content

Commit

Permalink
Remove custom html form for bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Jun 27, 2024
1 parent d6eb483 commit 4cbec60
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@
xhr.addEventListener("abort", handleError);
xhr.addEventListener("error", handleError);

xhr.onreadystatechange = (e) => {
if (xhr.readyState == XMLHttpRequest.DONE) {
if (buttonUsed === "start_upload") {
location.href = "/admin/";
} else {
location.reload();
}
}
};
// xhr.onreadystatechange = (e) => {
// if (xhr.readyState == XMLHttpRequest.DONE) {
// if (buttonUsed === "start_upload") {
// location.href = "/admin/";
// } else {
// location.reload();
// }
// }
// };

// Send POST req
xhr.open("POST", url, true);
Expand Down

0 comments on commit 4cbec60

Please sign in to comment.