diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-17 20:25:25 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-17 20:25:25 -0400 |
commit | aed7fb5cf5b04b296689771e3337b19a4a281f55 (patch) | |
tree | 67277db536225b08215e15f3898cbc01522880e1 /controllers | |
parent | f9c24f3c2c46eccd18e70704c0e8767fa6023206 (diff) |
Assignee change from the board is now a popover
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/board.php | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/controllers/board.php b/controllers/board.php index 8eea4dcc..02669e3a 100644 --- a/controllers/board.php +++ b/controllers/board.php @@ -60,16 +60,30 @@ class Board extends Base if (! $project) $this->notfound(); $this->checkProjectPermissions($project['id']); - $this->response->html($this->template->layout('board_assign', array( - 'errors' => array(), - 'values' => $task, - 'users_list' => $this->project->getUsersList($project['id']), - 'projects' => $projects, - 'current_project_id' => $project['id'], - 'current_project_name' => $project['name'], - 'menu' => 'boards', - 'title' => t('Change assignee').' - '.$task['title'], - ))); + if ($this->request->isAjax()) { + + $this->response->html($this->template->load('board_assign', array( + 'errors' => array(), + 'values' => $task, + 'users_list' => $this->project->getUsersList($project['id']), + 'projects' => $projects, + 'current_project_id' => $project['id'], + 'current_project_name' => $project['name'], + ))); + } + else { + + $this->response->html($this->template->layout('board_assign', array( + 'errors' => array(), + 'values' => $task, + 'users_list' => $this->project->getUsersList($project['id']), + 'projects' => $projects, + 'current_project_id' => $project['id'], + 'current_project_name' => $project['name'], + 'menu' => 'boards', + 'title' => t('Change assignee').' - '.$task['title'], + ))); + } } /** |