From fed918ab7972cafa6b005e163ffb07a619c21426 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 10 Jan 2013 03:28:05 +0000 Subject: [PATCH] * adjust hide selectAll button when no cases. --- module/testcase/view/browse.html.php | 22 +++++++++++++--------- module/testtask/lang/zh-cn.php | 2 +- module/testtask/view/cases.html.php | 2 ++ module/testtask/view/linkcase.html.php | 2 ++ 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/module/testcase/view/browse.html.php b/module/testcase/view/browse.html.php index 19a931d3d7..6e45ab9042 100644 --- a/module/testcase/view/browse.html.php +++ b/module/testcase/view/browse.html.php @@ -10,14 +10,15 @@ * @link http://www.zentao.net */ ?> - - - - - + +
'; - + + +
'; if(common::hasPriv('testtask', 'batchRun')) echo html::submitButton($lang->testtask->batchRun, "onclick='changeAction(\"" . $this->createLink('testtask', 'batchRun', "productID=$productID&orderBy=$orderBy") . "\")'"); ?>
+ show();?> diff --git a/module/testtask/lang/zh-cn.php b/module/testtask/lang/zh-cn.php index b1eeb456dd..025d24a078 100644 --- a/module/testtask/lang/zh-cn.php +++ b/module/testtask/lang/zh-cn.php @@ -67,7 +67,7 @@ $lang->testtask->fail = '失败'; $lang->testtask->byModule = '按模块'; $lang->testtask->assignedToMe = '指派给我'; -$lang->testtask->allCases = '所有Case'; +$lang->testtask->allCases = '所有用例'; $lang->testtask->lblCases = '用例列表'; $lang->testtask->lblUnlinkCase = '移除用例'; diff --git a/module/testtask/view/cases.html.php b/module/testtask/view/cases.html.php index 5ee90a90f1..b42c43af53 100644 --- a/module/testtask/view/cases.html.php +++ b/module/testtask/view/cases.html.php @@ -86,6 +86,7 @@ var moduleID = ''; +
'; ';casesform.submit();">
+ show();?> diff --git a/module/testtask/view/linkcase.html.php b/module/testtask/view/linkcase.html.php index 99bb3e8e45..7124887ad8 100644 --- a/module/testtask/view/linkcase.html.php +++ b/module/testtask/view/linkcase.html.php @@ -60,7 +60,9 @@ +
+
show();?>