##// END OF EJS Templates
Remove pasted images by clicking them
neko259 -
r1991:e456de36 default
parent child Browse files
Show More
@@ -115,6 +115,12 b' function addOnImagePaste() {'
115 115 var img = $('<img class="image-preview" />');
116 116 img.attr('src', fr.result);
117 117 pastedImagesList.append(img);
118 img.on("click", function() {
119 // Remove the image from all lists
120 var itemIndex = $(this).index();
121 pastedImages.splice(itemIndex, 1);
122 $(this).remove();
123 });
118 124 };
119 125 fr.readAsDataURL(blob);
120 126 }
General Comments 0
You need to be logged in to leave comments. Login now