added inf scroll to contacts index page

This commit is contained in:
danielgrippi 2011-06-27 15:54:03 -07:00
parent 9e92230cf7
commit f9a23b8120
2 changed files with 25 additions and 0 deletions

View file

@ -2,6 +2,19 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
:javascript
$(document).ready(function(){
$("#people_stream").infinitescroll({
navSelector : ".pagination",
nextSelector : ".next_page",
itemSelector : ".stream_element",
loadingText: "",
loadingImg: '/images/ajax-loader.gif',
bufferPx: 400
});
});
- content_for :page_title do
= t('.title')

View file

@ -32,6 +32,18 @@
$('#main_stream').infinitescroll(this.options, function() {
Diaspora.widgets.publish("stream/scrolled");
});
} else if($('#people_stream.contacts').length !== 0){
$("#people_stream.contacts").infinitescroll({
navSelector : ".pagination",
nextSelector : ".next_page",
itemSelector : ".stream_element",
loadingText: "",
loadingImg: '/images/ajax-loader.gif',
bufferPx: 400
}, function(){
Diaspora.widgets.publish("stream/scrolled");
});
}
};