summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-12 22:09:17 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-12 22:09:17 -0400
commit64ac705c1e9808ee6d3e5d7d6a07514f2e125f99 (patch)
tree8bf44fb03e918657e2a081bb216126f557559184 /controllers
parent9722cf61520b166454ab7b4cda5b610d56f1fa77 (diff)
Refresh the board only when it's necessary and add a link on the task title
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() !== ''
));
}
}