projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31a3e9f
)
workaround problem of browser loading all images at once by limiting hidden images...
author
Guillaume Cottenceau
<gcottenc@gmail.com>
Tue, 13 Oct 2009 11:32:26 +0000
(13:32 +0200)
committer
Guillaume Cottenceau
<gcottenc@gmail.com>
Tue, 13 Oct 2009 11:32:26 +0000
(13:32 +0200)
bin/booh-backend
patch
|
blob
|
history
diff --git
a/bin/booh-backend
b/bin/booh-backend
index a1d16420642593eeb4b0a791e8956dec824f65ec..8d1dc4f00e304a8c0b46a5d9be697592311f00fd 100644
(file)
--- a/
bin/booh-backend
+++ b/
bin/booh-backend
@@
-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(', ')
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']].collect { |e| "<img src=\"#{e}\"/>" }.join('') + '</span>'
+ hiddenimages4remotes = '<span style="display:none">' + fullscreen_images[sizeobj['name']]
[0..4]
.collect { |e| "<img src=\"#{e}\"/>" }.join('') + '</span>'
otherimages4js = ''
othersizes = []
for sizeobj2 in all_images_sizes
otherimages4js = ''
othersizes = []
for sizeobj2 in all_images_sizes