diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-04 16:29:54 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-04 16:29:54 -0400 |
commit | f531d57dc27b9d1568de0a10b19f69e8c2b2f156 (patch) | |
tree | 75165b2b3456347cf1949c5b3b072dcffa368a69 | |
parent | b8f41d0f2a42e8e3f455f5497fc6437142f10776 (diff) |
Keep the checkbox 'another subtask' activated, see #295
-rw-r--r-- | app/Controller/Subtask.php | 3 | ||||
-rw-r--r-- | assets/js/app.js | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Subtask.php b/app/Controller/Subtask.php index a103f999..63ca6303 100644 --- a/app/Controller/Subtask.php +++ b/app/Controller/Subtask.php @@ -39,6 +39,7 @@ class Subtask extends Base $this->response->html($this->taskLayout('subtask_create', array( 'values' => array( 'task_id' => $task['id'], + 'another_subtask' => $this->request->getIntegerParam('another_subtask', 0) ), 'errors' => array(), 'users_list' => $this->projectPermission->getUsersList($task['project_id']), @@ -70,7 +71,7 @@ class Subtask extends Base } if (isset($values['another_subtask']) && $values['another_subtask'] == 1) { - $this->response->redirect('?controller=subtask&action=create&task_id='.$task['id']); + $this->response->redirect('?controller=subtask&action=create&task_id='.$task['id'].'&another_subtask=1'); } $this->response->redirect('?controller=task&action=show&task_id='.$task['id'].'#subtasks'); diff --git a/assets/js/app.js b/assets/js/app.js index 812cd034..c474efb8 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -275,7 +275,6 @@ Kanboard.Project = (function() { // Initialization $(function() { -//alert($(window).width()); if ($("#board").length) { Kanboard.Board.Init(); } |