added inf scroll to contacts index page
This commit is contained in:
parent
9e92230cf7
commit
f9a23b8120
2 changed files with 25 additions and 0 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue