From: gc Date: Sun, 5 Feb 2006 19:00:01 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: 0.9.0~265 X-Git-Url: http://git.zarb.org/?p=booh;a=commitdiff_plain;h=70d0c15d098274b3dd00fb51905f5498688b3d10 *** empty log message *** --- diff --git a/bin/booh-backend b/bin/booh-backend index f4a2b52..a004580 100755 --- a/bin/booh-backend +++ b/bin/booh-backend @@ -408,7 +408,7 @@ def html_reload_to_thumbnails html_reload_to_thumbnails.gsub!(/~~all_sizes~~/, all_images_sizes.collect { |s| "\"#{size2js(s['name'])}\"" }.join(', ')) size_auto_chooser = ''; all_images_sizes.sort { |a,b| b['optimizedforwidth'].to_i <=> a['optimizedforwidth'].to_i }. - each { |s| size_auto_chooser += "if (w + 50 - #{s['optimizedforwidth']} > 0) { return 'thumbnails-#{size2js(s['name'])}.html'; }\n" } + each { |s| size_auto_chooser += "if (w + 50 > #{s['optimizedforwidth']}) { return 'thumbnails-#{size2js(s['name'])}.html'; }\n" } html_reload_to_thumbnails.gsub!(/~~size_auto_chooser~~/, size_auto_chooser) return html_reload_to_thumbnails end