From a4abfac31f8174798041245e91f6febf5aa37d52 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 22 Nov 2021 20:03:29 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]');