diff --git a/module/bug/js/create.js b/module/bug/js/create.js index e7ec1fe87d..3e258bd9be 100644 --- a/module/bug/js/create.js +++ b/module/bug/js/create.js @@ -75,8 +75,22 @@ function setTemplate(templateID) function deleteTemplate(templateID) { if(!templateID) return; - hiddenwin.location.href = createLink('bug', 'deleteTemplate', 'templateID=' + templateID); - $('#tplBox' + templateID).addClass('hidden'); + if (confirm("您确认要删除该模板吗?")){ + hiddenwin.location.href = createLink('bug', 'deleteTemplate', 'templateID=' + templateID); + $('#tplBox' + templateID).addClass('hidden'); + } +} + +/*visbile template x icon*/ +function mouseOver(delTempID) +{ + $('#delTemp'+delTempID).removeClass('hidden'); +} + +/*hidden template x icon*/ +function mouseOut(delTempID) +{ + $('#delTemp'+delTempID).addClass('hidden'); } $(function() diff --git a/module/bug/view/buildtemplates.html.php b/module/bug/view/buildtemplates.html.php index 8adfc3ff34..41422936f9 100644 --- a/module/bug/view/buildtemplates.html.php +++ b/module/bug/view/buildtemplates.html.php @@ -1,11 +1,11 @@ $template) { - echo "
Do you want to turn it on?Turn On Planned Task
EOD; $lang->cron->notice = new stdclass(); diff --git a/module/cron/lang/zh-cn.php b/module/cron/lang/zh-cn.php index b43c0f29fa..3fb0e171d7 100644 --- a/module/cron/lang/zh-cn.php +++ b/module/cron/lang/zh-cn.php @@ -40,7 +40,7 @@ $lang->cron->introduction = <<是否开启该功能?打开计划任务
EOD; $lang->cron->notice = new stdclass(); diff --git a/module/cron/lang/zh-tw.php b/module/cron/lang/zh-tw.php index 9db877b716..6dd6889e1e 100644 --- a/module/cron/lang/zh-tw.php +++ b/module/cron/lang/zh-tw.php @@ -40,7 +40,7 @@ $lang->cron->introduction = <<是否開啟該功能?打開計劃任務
EOD; $lang->cron->notice = new stdclass(); diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php index c82049eb97..1431bf99bb 100644 --- a/module/testcase/view/view.html.php +++ b/module/testcase/view/view.html.php @@ -79,28 +79,25 @@ precondition);?> - +| testcase->stepID;?> | +testcase->stepDesc;?> | +testcase->stepExpect;?> | +
|---|---|---|
| $stepID | "; + echo "" . nl2br($step->desc) . " | "; + echo "" . nl2br($step->expect) . " | "; + echo "