fix the ajax-loader for scroll on non root page
This commit is contained in:
parent
c22894ff2a
commit
d5819e3c9e
1 changed files with 4 additions and 14 deletions
|
|
@ -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'
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue