summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-16 03:27:07 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-16 03:27:07 +0200
commit6dcf152409c21f883e3082068bab75dc10a7fa39 (patch)
tree5008c69494b618178ad3504c3d4e3f18b4952ac1 /ajax
parent0ca106420e921582459cbaba9b520ed50e7b4a91 (diff)
added basics for drag and drop
Diffstat (limited to 'ajax')
-rw-r--r--ajax/movefeedtofolder.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/ajax/movefeedtofolder.php b/ajax/movefeedtofolder.php
new file mode 100644
index 000000000..e4a78d28a
--- /dev/null
+++ b/ajax/movefeedtofolder.php
@@ -0,0 +1,23 @@
+<?php
+/**
+* ownCloud - News app
+*
+* @author Bernhard Posselt
+* Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com>
+*
+* This file is licensed under the Affero General Public License version 3 or later.
+* See the COPYING-README file
+*
+*/
+
+// Check if we are a user
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('news');
+OCP\JSON::callCheck();
+
+$folderId = $_POST['folderId'];
+$itemId = $_POST['itemId'];
+
+// TODO: save
+
+OCP\JSON::success(); \ No newline at end of file