Fic bug from merge
This commit is contained in:
parent
7f3ae19454
commit
7e922d8ed4
|
@ -49,7 +49,7 @@ module ParserCommon
|
||||||
body.css('ad_banner').each do |banner|
|
body.css('ad_banner').each do |banner|
|
||||||
res = ''
|
res = ''
|
||||||
ad_banner = AdBanner.find(banner["id"]) rescue nil
|
ad_banner = AdBanner.find(banner["id"]) rescue nil
|
||||||
if ad_banner && ad_banner.display?
|
if ad_banner
|
||||||
res << "<script type='text/javascript'>
|
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 }); });
|
$(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>"
|
</script>"
|
||||||
|
|
Loading…
Reference in New Issue