summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-25 20:49:26 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-25 20:49:26 -0500
commit5de091ea2821f189e867510c15e0d1d00f39b7e8 (patch)
tree8b1a28b790683c241e669ade3284031d2f6778ee /app/Controller
parentd89fed4e2552838b8b38f9a665438b70a89f1542 (diff)
Show the task creation form as a popover
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Task.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php
index b826a305..907c42cc 100644
--- a/app/Controller/Task.php
+++ b/app/Controller/Task.php
@@ -89,8 +89,9 @@ class Task extends Base
public function create()
{
$project = $this->getProject();
+ $method = $this->request->isAjax() ? 'load' : 'layout';
- $this->response->html($this->template->layout('task_new', array(
+ $this->response->html($this->template->$method('task_new', array(
'errors' => array(),
'values' => array(
'project_id' => $project['id'],