Fic bug from merge

This commit is contained in:
Christophe Vilayphiou 2012-04-02 10:54:48 +08:00
parent 7f3ae19454
commit 7e922d8ed4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module ParserCommon
body.css('ad_banner').each do |banner|
res = ''
ad_banner = AdBanner.find(banner["id"]) rescue nil
if ad_banner && ad_banner.display?
if ad_banner
res << "<script type='text/javascript'>
$(document).ready(function(){ $('#slideshow-#{ad_banner.title.dehumanize}').cycle({delay: -1000, fx: '#{ad_banner.ad_fx.nil?? 'fade': ad_banner.ad_fx}', timeoutFn: getTimeout }); });
</script>"