From e5ce0848b58282f3b7678031e5270766dee2d766 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 31 Oct 2021 21:12:25 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 9e052721..ad9a28c9 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -76,15 +76,16 @@ el = evt.target; console.log(el); - $(el).find(".temp-thumb").remove() + $(el).find(".temp-thumb").remove(); if (el.files.length > 0) { extra_class = " image-ident-loading"; if ($(el).hasClass("image-ident-warning")) { - extra_class = " image-ident-warning" + extra_class = " image-ident-warning"; } else if ($(el).hasClass("image-ident-ok")) { - extra_class = " image-ident-ok" + extra_class = " image-ident-ok"; } - $(`#drop-filenames span[data-input-id='${el.id}']`).remove() + n = el.id.split("-")[1]; + $(`#drop-filenames span[data-input-id='${el.id}']`).remove(); $("#drop-filenames").append( `${n}: ${el.files[0].name}` )