Skip to content

Instantly share code, notes, and snippets.

@marknutter
Created January 20, 2012 00:37
Show Gist options
  • Save marknutter/1644065 to your computer and use it in GitHub Desktop.
Save marknutter/1644065 to your computer and use it in GitHub Desktop.
this.find(".action_items").scroll(function() {
     if ((!self.options.all_loaded) && (!self.options.loading_on_scroll)) {
       $(".title_and_create:visible").html($(this).scrollTop() + " - h " + $(this).height());
       if ($(this).scrollTop() > $(this).height() - 40) {
         self.options.loading_on_scroll = true;
         self.options.params.page = self.options.params.page + 1;
         self.getItems(true);
       }
     }
   });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment