diff --git a/boards/static/js/form.js b/boards/static/js/form.js --- a/boards/static/js/form.js +++ b/boards/static/js/form.js @@ -115,6 +115,12 @@ function addOnImagePaste() { var img = $(''); img.attr('src', fr.result); pastedImagesList.append(img); + img.on("click", function() { + // Remove the image from all lists + var itemIndex = $(this).index(); + pastedImages.splice(itemIndex, 1); + $(this).remove(); + }); }; fr.readAsDataURL(blob); }