app/javascript/spotlight/admin/multi_image_selector.js in blacklight-spotlight-4.0.1 vs app/javascript/spotlight/admin/multi_image_selector.js in blacklight-spotlight-4.0.2
- old
+ new
@@ -64,10 +64,10 @@
var viewportWidth = thumbsListContainer.width();
var width = 0;
$('li', thumbList).each(function(){
var thisThumb = $(this),
image = $('img', thisThumb),
- totalWidth = width += thisThumb.width();
+ totalWidth = width += thisThumb.width(),
position = (thumbList.position().left + totalWidth) - thisThumb.width();
if(position >= 0 && position < viewportWidth) {
image.prop('src', image.data('src'));
}