From 27110ed0c264b01b83c44fdf83f2997f19a9a678 Mon Sep 17 00:00:00 2001 From: David Shaun Guay Date: Fri, 25 Mar 2011 11:57:48 -0400 Subject: [PATCH] Ajax loading --- app/views/movies/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/movies/index.html.erb b/app/views/movies/index.html.erb index 7ff8e6f..3e11dab 100644 --- a/app/views/movies/index.html.erb +++ b/app/views/movies/index.html.erb @@ -14,7 +14,7 @@ function scrollalert(){ var scrolltop=$('#scrollbox').attr('scrollTop'); var scrollheight=$('#scrollbox').attr('scrollHeight'); var windowheight=$('#scrollbox').attr('clientHeight'); - var scrolloffset=100; + var scrolloffset=800; if(scrolltop>=(scrollheight-(windowheight+scrolloffset)) && totalItems*3