1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

Test for contact not being rendered. owncloud/contacts#91

This commit is contained in:
Thomas Tanghus 2013-05-16 16:03:22 +02:00
parent af0f352a0f
commit 03ae02c155

View File

@ -2201,6 +2201,10 @@ OC.Contacts = OC.Contacts || {};
);
self.length +=1;
var $item = self.contacts[id].renderListItem();
if(!$item) {
console.warn('Contact', contact, 'could not be rendered!');
return true; // continue
}
items.push($item.get(0));
if(items.length === 100) {
self.$contactList.append(items);