fredwu / jquery-endless-scroll

Endless/infinite scrolling/pagination.
http://fredwu.github.com/jquery-endless-scroll/
838 stars 176 forks source link

When no results are returned, the loader graphic remains... #1

Closed epugh closed 13 years ago

epugh commented 14 years ago

Because the div#endless_scroll_loader remove call: $("div#endless_scroll_loader").remove(); is in if (data !== false), when I get no results back then it just stays there....

I had to explicitly add this:

if (response.response.docs.length == 0){
        no_more_results = true;
        $("div#endless_scroll_loader").remove();
      }
fredwu commented 13 years ago

Thanks for the report. This should be fixed in v1.4.4. :)