fix the ajax-loader for scroll on non root page

This commit is contained in:
maxwell 2010-12-19 19:15:16 -08:00
parent c22894ff2a
commit d5819e3c9e

View file

@ -1,16 +1,6 @@
//$(function () {
//$('#main_stream .pagination a').live('click', function () {
//$.getScript(this.href);
//return false;
//}
//);
//});
// infinitescroll() is called on the element that surrounds
// the items you will be loading more of
$(document).ready(function() {
$('#main_stream').infinitescroll({
navSelector : "div.pagination",
$(document).ready(function() {
$('#main_stream').infinitescroll({
navSelector : "div.pagination",
// selector for the paged navigation (it will be hidden)
nextSelector : ".pagination a.next_page",
// selector for the NEXT link (to page 2)
@ -19,7 +9,7 @@ $('#main_stream').infinitescroll({
bufferPx: 300,
donetext: "no more.",
loadingText: "",
loadingImg: 'images/ajax-loader.gif'
loadingImg: '/images/ajax-loader.gif'
});
});