Skip to content

Commit

Permalink
Ajax loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Daguaa committed Mar 25, 2011
1 parent e62cfb7 commit 27110ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/movies/index.html.erb
Expand Up @@ -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<nb_item)
{
//fetch new items
Expand Down

0 comments on commit 27110ed

Please sign in to comment.