Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
this.on("success", function (file, response) {
if (response && response.length > 0) {
$.each(response, function (i, v) {
uploadedFileMap[file.upload.uuid] = response.find(function (element) {
return == element.originalName;
changeThumbnailSuccessState(file, response);
$(file.previewElement).find(".view-attachment").attr("href", file.dataURL);
$(file.previewElement).find(".view-attachment").attr("data-lightbox", "lightbox-gallery");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment