1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Trigger loading of more contacts a bit earlier.

This commit is contained in:
Thomas Tanghus 2012-07-19 22:55:52 +02:00
parent 7ee1d2004e
commit d4b6d60754

View File

@ -1565,7 +1565,7 @@ Contacts={
if(book.contacts[c].id == undefined) { continue; }
if(!$('#contacts li[data-id="'+book.contacts[c]['id']+'"]').length) {
var contact = Contacts.UI.Card.createEntry(book.contacts[c]);
if(c == self.batchnum-5) {
if(c == self.batchnum-10) {
contact.bind('inview', function(event, isInView, visiblePartX, visiblePartY) {
$(this).unbind(event);
var bookid = $(this).data('bookid');