From 6f20e081e47ac5ef2f2dde3f4cc9cdb0bf562283 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle <schiessle@owncloud.com> Date: Tue, 30 Jul 2013 12:48:41 +0200 Subject: added missing isEmpty ajax file --- apps/files_trashbin/ajax/isEmpty.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 apps/files_trashbin/ajax/isEmpty.php diff --git a/apps/files_trashbin/ajax/isEmpty.php b/apps/files_trashbin/ajax/isEmpty.php new file mode 100644 index 00000000000..2e54c7e77b9 --- /dev/null +++ b/apps/files_trashbin/ajax/isEmpty.php @@ -0,0 +1,14 @@ +<?php + +/* + * Check if trash bin is empty to re-enable the deleted files button if needed + */ + +OCP\JSON::checkLoggedIn(); +OCP\JSON::callCheck(); + +$trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser()); + +OCP\JSON::success(array("data" => array("isEmpty" => $trashStatus))); + + -- cgit v1.2.3