equal
deleted
inserted
replaced
844 let img = thumbnailBuffer[_thumbnail]; |
844 let img = thumbnailBuffer[_thumbnail]; |
845 if(typeof(img) == "undefined") { |
845 if(typeof(img) == "undefined") { |
846 img = new Image(); |
846 img = new Image(); |
847 thumbnailBuffer[_thumbnail] = img; |
847 thumbnailBuffer[_thumbnail] = img; |
848 } |
848 } |
849 console.log("Thumnailimg", jQuery(`#${_thumbnailId}`,_el).attr('src')); |
|
850 if(img.src && IsImageOk(img)) { |
849 if(img.src && IsImageOk(img)) { |
851 jQuery(`#${_thumbnailId}`,_el).attr('src', img.src); |
850 jQuery(`#${_thumbnailId}`,_el).attr('src', img.src); |
852 } else { |
851 } else { |
853 img.onload = function() { |
852 img.onload = function() { |
854 jQuery(`#${_thumbnailId}`,_el).attr('src', img.src); |
853 jQuery(`#${_thumbnailId}`,_el).attr('src', img.src); |