summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/chooseaddressbook.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-05-28 15:59:58 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-05-29 16:43:59 +0200
commitdff16e70a9e9d26ebc416dcd046e3d65e55c5c35 (patch)
treed48cccf434921c6d695870a6bcc4ae8dead5b257 /apps/contacts/ajax/chooseaddressbook.php
parent29372677aee0c415af7686712ab829e13e309999 (diff)
downloadnextcloud-server-dff16e70a9e9d26ebc416dcd046e3d65e55c5c35.tar.gz
nextcloud-server-dff16e70a9e9d26ebc416dcd046e3d65e55c5c35.zip
Contacts: Improve loading and cleanup of dialogs.
Diffstat (limited to 'apps/contacts/ajax/chooseaddressbook.php')
-rw-r--r--apps/contacts/ajax/chooseaddressbook.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/contacts/ajax/chooseaddressbook.php b/apps/contacts/ajax/chooseaddressbook.php
index 9088a4e9d7d..1ce8dd46eef 100644
--- a/apps/contacts/ajax/chooseaddressbook.php
+++ b/apps/contacts/ajax/chooseaddressbook.php
@@ -10,5 +10,6 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts');
-$output = new OCP\Template("contacts", "part.chooseaddressbook");
-$output -> printpage();
+$tmpl = new OCP\Template("contacts", "part.chooseaddressbook");
+$page = $tmpl->fetchPage();
+OCP\JSON::success(array('data' => array('page'=>$page)));