1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-02-12 06:54:28 +01:00

Also hide contacts header when there are no contacts.

This commit is contained in:
Thomas Tanghus 2013-08-03 14:35:00 +02:00
parent 652aededfc
commit 20694185ed

View File

@ -408,9 +408,11 @@ OC.Contacts = OC.Contacts || {
console.log('Error loading contacts!'); console.log('Error loading contacts!');
} else { } else {
if(response.numcontacts === 0) { if(response.numcontacts === 0) {
self.$contactListHeader.hide();
self.$contactList.hide(); self.$contactList.hide();
self.$firstRun.show(); self.$firstRun.show();
} else { } else {
self.$contactListHeader.show();
self.$contactList.show(); self.$contactList.show();
self.$firstRun.hide(); self.$firstRun.hide();
} }