diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index b1a03060..38bf4ce1 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -446,7 +446,7 @@ ocr2(url, el); - checkHash(hash); + checkHash(hash, el); $("#drop-filenames").append( `${n}: ${el.files[0].name}` @@ -469,7 +469,7 @@ let hash = CryptoJS.MD5(pixel_data).toString(); console.log(element, "HASH", hash) - checkHash(hash); + checkHash(hash, el); }); @@ -649,8 +649,10 @@ if (data.status == "success") { console.log("success"); console.log(data.id) + if (data.id) { toastr.info(`id ${data.id}`) } + } }) .always(function () { console.log('[Done]');