summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/base.php1
-rw-r--r--controllers/board.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/controllers/base.php b/controllers/base.php
index dd7c0642..81fb8884 100644
--- a/controllers/base.php
+++ b/controllers/base.php
@@ -14,6 +14,7 @@ abstract class Base
$this->task = $registry->task;
$this->user = $registry->user;
$this->comment = $registry->comment;
+ $this->event = $registry->shared('event');
}
public function beforeAction($controller, $action)
diff --git a/controllers/board.php b/controllers/board.php
index f0af2606..b07ca61c 100644
--- a/controllers/board.php
+++ b/controllers/board.php
@@ -276,7 +276,8 @@ class Board extends Base
}
$this->response->json(array(
- 'result' => $this->board->saveTasksPosition($this->request->getValues())
+ 'result' => $this->board->saveTasksPosition($this->request->getValues()),
+ 'refresh' => $this->event->getLastListenerExecuted() !== ''
));
}
}