specifying the fullscreenn images for remotes is still too costly, it visibly delays...
authorGuillaume Cottenceau <gcottenc@gmail.com>
Mon, 19 Oct 2009 20:45:29 +0000 (22:45 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Mon, 19 Oct 2009 20:45:29 +0000 (22:45 +0200)
bin/booh-backend

index 99ae100..423d116 100644 (file)
@@ -1275,7 +1275,7 @@ def walk_source_dir
                 for sizeobj in $images_size
                     html = $html_images.collect { |l| l.clone }
                     images4js = fullscreen_images[sizeobj['name']].collect { |e| "\"#{e}\"" }.join(', ')
-                    hiddenimages4remotes = '<span style="display:none">' + fullscreen_images[sizeobj['name']][0..4].collect { |e| "<img src=\"#{e}\"/>" }.join('') + '</span>'
+                    hiddenimages4remotes = '<span style="display:none">' + thumbnail_images[sizeobj['name']][0..4].collect { |e| "<img src=\"#{e}\"/>" }.join('') + '</span>'
                     otherimages4js = ''
                     othersizes = []
                     for sizeobj2 in all_images_sizes