From 64ac705c1e9808ee6d3e5d7d6a07514f2e125f99 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 12 Mar 2014 22:09:17 -0400 Subject: Refresh the board only when it's necessary and add a link on the task title --- controllers/base.php | 1 + controllers/board.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'controllers') 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() !== '' )); } } -- cgit v1.2.3