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}` )