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

Contacts: Re-arrange address book management.

This commit is contained in:
Thomas Tanghus 2012-12-07 14:57:11 +01:00
parent cd12448c77
commit ed9fec3b1d
2 changed files with 11 additions and 12 deletions

View File

@ -717,7 +717,6 @@ OC.Contacts = OC.Contacts || {
this.bindEvents();
this.$toggleAll.show();
this.showActions(['addcontact']);
OC.Share.loadIcons('addressbook');
// Wait 2 mins then check if contacts are indexed.
setTimeout(function() {

View File

@ -53,17 +53,6 @@
</li>
</ul>
</li>
<li><h3 class="export"><?php echo $l->t('Export'); ?></h3>
<ul class="hidden">
<?php foreach($_['addressbooks'] as $addressbook): ?>
<li>
<a role="button" href="<?php echo OCP\Util::linkToAbsolute('contacts', 'export.php'); ?>?bookid=<?php echo $addressbook['id'] ?>">
<?php echo $addressbook['displayname'] ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</li>
</ul>
</div>
</div>
@ -379,3 +368,14 @@
</li>
</div>
</script>
<script id="addressbookTemplate" class="hidden" type="text/template">
<li data-id="{id}">
<label class="float">{displayname}</label>
<span class="actions">
<a title="<?php echo $l->t('Share'); ?>" class="share action" data-possible-permissions="{permissions}" data-item="{id}" data-item-type="addressbook"></a>
<a title="<?php echo $l->t('Export'); ?>" class="download action" href="<?php echo OCP\Util::linkTo('contacts', 'export.php'); ?>?bookid=' + {id}"></a>
<a title="<?php echo $l->t('CardDAV link'); ?>" class="globe action"></a>
<a title="<?php echo $l->t('Delete'); ?>" class="delete action"></a>
</span></li>
</script>