Fix Ad_Banner Loading Problem (Not complete)

This commit is contained in:
Manson Wang committed 2013-09-30 21:10:49 +08:00
1 parent fac578f251
commit 9c41282fdb
2 files changed
+39 -26

No files matched your search

+5 -14
View File
@@ -10,18 +10,9 @@
</div>
</div>
<script type='text/javascript'>
$(document).ready(function(){
jQuery(function( $ ){
$('#slideshow-<%= @ad_banner.title.dehumanize %>').cycle({
delay: -1000,
fx: "<%= @ad_banner.ad_fx.nil? ? 'fade': @ad_banner.ad_fx %>",
timeoutFn: getTimeout,
pager: '.banner_nav-<%= @ad_banner.title.dehumanize %>',
pagerAnchorBuilder: function(idx, slide) {
return "<li><a href='#'></a></li>";
}
});
});
});
var banner = {"banner_name":"#slideshow-<%= @ad_banner.title.dehumanize %>",
"banner_fx":"<%= @ad_banner.ad_fx.nil? ? 'fade': @ad_banner.ad_fx %>",
"banner_pager":".banner_nav-<%= @ad_banner.title.dehumanize %>"
};
banners.push(banner);
</script>