fixed js
This commit is contained in:
@@ -283,7 +283,7 @@ function submitPdf(eve) {
|
|||||||
submitForm(formdata);
|
submitForm(formdata);
|
||||||
}
|
}
|
||||||
async function submitForm(formData) {
|
async function submitForm(formData) {
|
||||||
var updateEventSource = None;
|
var updateEventSource = null;
|
||||||
try {
|
try {
|
||||||
updateEventSource = new EventSource("/get_censor_status/" + doc.fID);
|
updateEventSource = new EventSource("/get_censor_status/" + doc.fID);
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ async function submitForm(formData) {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
body: formData,
|
body: formData,
|
||||||
});
|
});
|
||||||
if (updateEventSource !== None) {
|
if (updateEventSource !== null) {
|
||||||
updateEventSource.close();
|
updateEventSource.close();
|
||||||
}
|
}
|
||||||
modal.style.display = "none";
|
modal.style.display = "none";
|
||||||
|
|||||||
Reference in New Issue
Block a user