From fa5f377d5246c3548d30ca633e6c0c63b9475107 Mon Sep 17 00:00:00 2001 From: chenfei Date: Wed, 20 Mar 2019 15:58:19 +0800 Subject: [PATCH] * Code for task #5343, #5346. --- module/project/css/kanban.css | 5 ++++- module/project/view/kanban.html.php | 19 ++++++++++++++++++- module/task/control.php | 9 ++------- module/task/view/view.html.php | 4 ++++ module/testcase/control.php | 7 +------ 5 files changed, 29 insertions(+), 15 deletions(-) diff --git a/module/project/css/kanban.css b/module/project/css/kanban.css index c9ccad2451..a44b02dfe1 100644 --- a/module/project/css/kanban.css +++ b/module/project/css/kanban.css @@ -19,6 +19,9 @@ .board-item .btn {padding: 2px 10px 2px 23px; font-size: 12px; position: relative; left: -2px; height: 24px;} .board-item .btn-icon-left > .icon {width: 22px; height: 22px; line-height: 20px; font-size: 14px; opacity: 1; top: 1px} .board-item .btn-icon-left > span {max-width: 80px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: inline-block;} +.board-title {padding-right: 20px;} +.board-actions {position: absolute; right: 3px; top: 3px;} +.board-actions.nav > li > a {padding: 3px 3px;} #kanban {overflow-y: auto} #kanban > .table {min-width: 1100px;} #kanban.dragging .boards.dragging .board {background: #eee; opacity: .35; border-color: #f1f1f1} @@ -43,4 +46,4 @@ #kanban .group-title {word-break: break-all; line-height: 16px; padding: 3px 0; display: block;} .table-grouped > tbody > tr, -.table-grouped > tbody > tr:hover {background: #fff!important;} \ No newline at end of file +.table-grouped > tbody > tr:hover {background: #fff!important;} diff --git a/module/project/view/kanban.html.php b/module/project/view/kanban.html.php index 2806e366be..b32a7f3ef3 100644 --- a/module/project/view/kanban.html.php +++ b/module/project/view/kanban.html.php @@ -113,7 +113,24 @@ $account = $this->app->user->account;
- createLink('story', 'view', "storyID=$story->id", '', true), $story->title, '', 'class="kanbaniframe group-title" title="' . $story->title . '"');?> +
+ createLink('story', 'view', "storyID=$story->id", '', true), $story->title, '', 'class="kanbaniframe group-title" title="' . $story->title . '"');?> + +
#id?> story->priList, $story->pri);?> diff --git a/module/task/control.php b/module/task/control.php index 684a4087c3..e96e10334a 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -125,12 +125,7 @@ class task extends control } /* If link from no head then reload*/ - if(isonlybody()) - { - $response['locate'] = 'reload'; - $response['target'] = 'parent'; - $this->send($response); - } + if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true)); if($todoID > 0) { @@ -244,7 +239,7 @@ class task extends control if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError())); /* Locate the browser. */ - if(!empty($iframe)) $this->send(array('result' => 'success', 'locate' => 'parent')); + if(!empty($iframe)) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true)); $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $storyLink)); } diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php index dde92eebb0..83e46c070d 100644 --- a/module/task/view/view.html.php +++ b/module/task/view/view.html.php @@ -258,6 +258,10 @@ task->status;?> task->statusList, $task->status);?> + + task->progress;?> + progress . '%';?> + task->pri;?> pri;?>' title='task->priList, $task->pri);?>'>pri == '0' ? $lang->noData : zget($lang->task->priList, $task->pri)?> diff --git a/module/testcase/control.php b/module/testcase/control.php index 8dae13af0e..5403fd8ec5 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -239,12 +239,7 @@ class testcase extends control $this->action->create('case', $caseID, 'Opened'); /* If link from no head then reload. */ - if(isonlybody()) - { - $response['locate'] = 'reload'; - $response['target'] = 'parent'; - $this->send($response); - } + if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true)); setcookie('caseModule', (int)$this->post->module, 0, $this->config->webRoot); $response['locate'] = $this->createLink('testcase', 'browse', "productID={$this->post->product}&branch={$this->post->branch}&browseType=all¶m=0&orderBy=id_desc");