summaryrefslogtreecommitdiff
path: root/app/Controller/Task.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Task.php')
-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'],