diff --git a/module/kanban/js/common.js b/module/kanban/js/common.js index a5710e8ed9..8b602a5482 100644 --- a/module/kanban/js/common.js +++ b/module/kanban/js/common.js @@ -85,3 +85,26 @@ function locateView(module, objectID) if(module == 'build') dataApp = 'project'; parent.$.apps.open(createLink(module, 'view', 'objectID=' + objectID), dataApp); } + +/** + * When type change. + * + * @param string type + * @access public + * @return void + */ +function changeType(type) +{ + if(type == 'private') + { + $('#ownerBox').addClass('hidden'); + $('#teamBox').addClass('hidden'); + $('#whitelistBox').removeClass('hidden'); + } + else + { + $('#ownerBox').removeClass('hidden'); + $('#teamBox').removeClass('hidden'); + $('#whitelistBox').addClass('hidden'); + } +} diff --git a/module/kanban/js/createspace.js b/module/kanban/js/createspace.js deleted file mode 100644 index ee146e7ee2..0000000000 --- a/module/kanban/js/createspace.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * When type change. - * - * @param string type - * @access public - * @return void - */ -function changeType(type) -{ - location.href = createLink('kanban', 'createSpace', 'type=' + type); -} - diff --git a/module/kanban/js/editspace.js b/module/kanban/js/editspace.js deleted file mode 100644 index 4ae84ccaf6..0000000000 --- a/module/kanban/js/editspace.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * When type change. - * - * @param int spaceID - * @param string type - * @access public - * @return void - */ -function changeType(spaceID, type) -{ - location.href = createLink('kanban', 'editSpace', 'spaceID=' + spaceID + '&type=' + type); -} diff --git a/module/kanban/view/createspace.html.php b/module/kanban/view/createspace.html.php index 464e2c6319..4d385cf203 100644 --- a/module/kanban/view/createspace.html.php +++ b/module/kanban/view/createspace.html.php @@ -27,12 +27,11 @@
| kanbanspace->type;?> | -+ | ||
|---|---|---|---|
| name, "class='form-control'");?> | |||
| kanbanspace->owner;?> | owner, "class='form-control chosen'");?> | ||
| kanbanspace->team;?> |
@@ -42,7 +41,6 @@
|
||
| kanbanspace->desc;?> | @@ -50,12 +48,10 @@ desc, "rows='10' class='form-control'");?> | ||
| whitelist;?> | whitelist, 'class="form-control chosen" multiple');?> | ||
|
diff --git a/module/story/model.php b/module/story/model.php
index 2274921c13..e23c63ecae 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -41,7 +41,7 @@ class storyModel extends model
if($setImgSize) $story->spec = $this->file->setImgSize($story->spec);
if($setImgSize) $story->verify = $this->file->setImgSize($story->verify);
- $story->executions = $this->dao->select('t1.project, t2.name, t2.status')->from(TABLE_PROJECTSTORY)->alias('t1')
+ $story->executions = $this->dao->select('t1.project, t2.name, t2.status, t2.type')->from(TABLE_PROJECTSTORY)->alias('t1')
->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.project = t2.id')
->where('t1.story')->eq($storyID)
->andWhere('t2.type')->in('sprint,stage,kanban')
diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php
index 608e3c5b45..cec2a78115 100644
--- a/module/story/view/view.html.php
+++ b/module/story/view/view.html.php
@@ -492,7 +492,8 @@
{
foreach($story->executions as $executionID => $execution)
{
- echo " | |||