aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-02 11:39:51 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-02 11:39:51 +0200
commitdb4da3babc0864099c5ab48e3583d0546a2759d8 (patch)
tree235f119202235a0aa805ad74aef9d00799e739b2 /app/Controllers/feedController.php
parentbbedca510bb0b88850476bf2e2aa6af8c02ac741 (diff)
First draft for drag and drop
We can change feed category by drag and drop! Need improvements... See https://github.com/marienfressinaud/FreshRSS/issues/646
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index e4859b110..315665ef3 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -378,6 +378,21 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
}
}
+ public function moveAction() {
+ if (Minz_Request::isPost()) {
+ $feed_id = Minz_Request::param('f_id');
+ $cat_id = Minz_Request::param('c_id');
+
+ $feedDAO = FreshRSS_Factory::createFeedDao();
+
+ $values = array(
+ 'category' => $cat_id,
+ );
+
+ $feedDAO->updateFeed($feed_id, $values);
+ }
+ }
+
public function deleteAction() {
if (Minz_Request::isPost()) {
$id = Minz_Request::param('id');