summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-17 23:09:25 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-17 23:09:25 +0200
commit8337b30e433710ce0f9a7d8b24f23e0fab6fe381 (patch)
tree2166cf6ef489fd4e99e0baff2b6e53fcc043f82f
parent7d84c4741c72e46cf9d07bbae97d515f54f9a2d7 (diff)
downloadnextcloud-server-8337b30e433710ce0f9a7d8b24f23e0fab6fe381.tar.gz
nextcloud-server-8337b30e433710ce0f9a7d8b24f23e0fab6fe381.zip
Add thumbnail links so they are loaded when addressbook is expanded.
-rw-r--r--apps/contacts/templates/part.contacts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/templates/part.contacts.php b/apps/contacts/templates/part.contacts.php
index d23a249b981..f0b14c8e5f2 100644
--- a/apps/contacts/templates/part.contacts.php
+++ b/apps/contacts/templates/part.contacts.php
@@ -1,9 +1,9 @@
<?php
foreach($_['books'] as $id => $addressbook) {
echo '<h3 class="addressbook" data-id="'.$id.'">'.$addressbook['displayname'].'</h3>';
- echo '<ul class="contacts hidden">';
+ echo '<ul class="contacts hidden" data-id="'.$id.'">';
foreach($addressbook['contacts'] as $contact) {
- echo '<li role="button" book-id="'.$contact['addressbookid'].'" data-id="'.$contact['id'].'"><a href="index.php?id='.$contact['id'].'">'.$contact['displayname'].'</a></li>';
+ echo '<li role="button" data-bookid="'.$contact['addressbookid'].'" data-id="'.$contact['id'].'"><a href="index.php?id='.$contact['id'].'" style="background: url('.link_to('contacts','thumbnail.php').'?id='.$contact['id'].') no-repeat scroll 0 0 transparent;">'.$contact['displayname'].'</a></li>';
}
echo '</ul>';
}