This commit is contained in:
Ross
2021-11-12 13:10:36 +00:00
parent 758c03dc56
commit a69ccd3521
3 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -382,13 +382,14 @@
{ logger: m => console.log(m) }
).then(({ data: { text } }) => {
l = text.toLowerCase();
$(`img[data-input-id='${input.id}'`).removeClass("image-ident-loading");
uploading_el = $(`img[data-input-id='${input.id}', div[data-input-id='${input.id}'`)
uploading_el.removeClass("image-ident-loading");
console.log("found text", l);
if (l.includes("accesion") || l.includes("number") || l.search(
/(ref|rk9|rh8|ra9|rbz)\d+/g) > -1) {
console.log("Match found ", input);
$(input).addClass("image-ident-warning");
$(`img[data-input-id='${input.id}'`).addClass("image-ident-warning");
uploading_el.addClass("image-ident-warning");
} else {
$(input).addClass("image-ident-ok");