diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2011-12-05 03:38:06 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2011-12-05 03:38:06 +0100 |
commit | 830efdccac71ebbd4ee5f9414abd0878f2ff9349 (patch) | |
tree | 9a546b0c8b7a0e8e0ffd8d05d96bf0f17e778229 /apps/contacts/ajax/editaddressbook.php | |
parent | 2b48b733a3052c07e199dc2196426a529e977d2d (diff) | |
download | nextcloud-server-830efdccac71ebbd4ee5f9414abd0878f2ff9349.tar.gz nextcloud-server-830efdccac71ebbd4ee5f9414abd0878f2ff9349.zip |
Fixed adding, editing and deleting address books. One minor UI flaw remains.
Diffstat (limited to 'apps/contacts/ajax/editaddressbook.php')
-rw-r--r-- | apps/contacts/ajax/editaddressbook.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/contacts/ajax/editaddressbook.php b/apps/contacts/ajax/editaddressbook.php new file mode 100644 index 00000000000..abdad09dea0 --- /dev/null +++ b/apps/contacts/ajax/editaddressbook.php @@ -0,0 +1,20 @@ +<?php +/** + * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +require_once('../../../lib/base.php'); +$l10n = new OC_L10N('contacts'); +if(!OC_USER::isLoggedIn()) { + die("<script type=\"text/javascript\">document.location = oc_webroot;</script>"); +} +OC_JSON::checkAppEnabled('contacts'); +$addressbook = OC_Contacts_Addressbook::find($_GET['bookid']); +$tmpl = new OC_Template("contacts", "part.editaddressbook"); +$tmpl->assign('new', false); +$tmpl->assign('addressbook', $addressbook); +$tmpl->printPage(); +?> |