From 498c8a4dfd155a1bbc92b4bc799ecc4000eca8b8 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Fri, 13 Jul 2018 13:41:39 +0800 Subject: [PATCH] * Adjust href for refresh link. --- module/bug/view/create.html.php | 2 +- module/bug/view/edit.html.php | 2 +- module/product/control.php | 2 +- module/product/view/create.html.php | 2 +- module/story/view/create.html.php | 4 ++-- module/story/view/edit.html.php | 4 ++-- module/testcase/view/create.html.php | 2 +- module/testcase/view/edit.html.php | 5 +++-- module/tree/control.php | 2 +- 9 files changed, 13 insertions(+), 12 deletions(-) diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index bfa4fce286..b0728b6d93 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -55,7 +55,7 @@ js::set('confirmDeleteTemplate', $lang->bug->confirmDeleteTemplate); echo ""; echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=bug¤tModuleID=0&branch=$branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); echo '  '; - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); echo ''; } ?> diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 3ff36b22a4..2fdcfdf950 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -108,7 +108,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild); echo ""; echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=bug¤tModuleID=0&branch=$bug->branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); echo '  '; - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); echo ''; } ?> diff --git a/module/product/control.php b/module/product/control.php index a21f07c06e..a4761aeaa3 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -562,7 +562,7 @@ class product extends control $output .= html::a($this->createLink('productplan', 'create', "productID=$productID&branch=$branch", '', true), "", '', "class='btn btn-icon' data-toggle='modal' data-type='iframe' data-width='95%' title='{$this->lang->productplan->create}'"); $output .= ''; $output .= "
"; - $output .= html::a("#", "", '', "class='btn btn-icon refresh' data-toggle='tooltip' title='{$this->lang->refresh}' onclick='loadProductPlans($productID)'"); + $output .= html::a("javascript:void(0)", "", '', "class='btn btn-icon refresh' data-toggle='tooltip' title='{$this->lang->refresh}' onclick='loadProductPlans($productID)'"); $output .= '
'; } die($output); diff --git a/module/product/view/create.html.php b/module/product/view/create.html.php index f8e4c1c16d..48be3b9cb8 100644 --- a/module/product/view/create.html.php +++ b/module/product/view/create.html.php @@ -40,7 +40,7 @@ echo ""; echo html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=line", '', true), $lang->tree->manageLine, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); echo '  '; - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductLines($rootID)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductLines($rootID)'"); echo ''; } ?> diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index f5b727f8c7..e6a88ec078 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -47,7 +47,7 @@ echo "
"; echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=story¤tModuleID=0&branch=$branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); echo '  '; - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); echo '
'; } ?> @@ -66,7 +66,7 @@ echo html::a($this->createLink('productplan', 'create', "productID=$productID&branch=$branch", '', true), "", '', "class='btn btn-icon' data-toggle='modal' data-type='iframe' data-width='95%' title='{$lang->productplan->create}'"); echo ''; echo "
"; - echo html::a("#", "", '', "class='btn btn-icon refresh' data-toggle='tooltip' title='{$lang->refresh}' onclick='loadProductPlans($productID)'"); + echo html::a("javascript:void(0)", "", '', "class='btn btn-icon refresh' data-toggle='tooltip' title='{$lang->refresh}' onclick='loadProductPlans($productID)'"); echo '
'; } ?> diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index a52d82a34c..bf4381b52a 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -86,7 +86,7 @@ echo ""; echo html::a($this->createLink('tree', 'browse', "rootID=$story->product&view=story¤tModuleID=0&branch=$story->branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); echo '  '; - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductModules($story->product)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($story->product)'"); echo ''; } ?> @@ -103,7 +103,7 @@ { echo ""; echo html::a($this->createLink('productplan', 'create', "productID=$story->product&branch=$story->branch", '', true), $lang->productplan->create, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductPlans($story->product)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductPlans($story->product)'"); echo ''; } ?> diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php index 5f7667ad57..4fefa6957a 100644 --- a/module/testcase/view/create.html.php +++ b/module/testcase/view/create.html.php @@ -44,7 +44,7 @@ { echo ""; echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=case¤tModuleID=0&branch=$branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); echo ''; } ?> diff --git a/module/testcase/view/edit.html.php b/module/testcase/view/edit.html.php index 054c5f9286..a5542891ee 100644 --- a/module/testcase/view/edit.html.php +++ b/module/testcase/view/edit.html.php @@ -154,7 +154,7 @@ echo ""; echo html::a($this->createLink('tree', 'browse', "rootID=$libID&view=caselib¤tModuleID=0&branch=$case->branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); echo '  '; - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadLibModules($libID)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadLibModules($libID)'"); echo ''; } ?> @@ -182,7 +182,8 @@ echo ""; echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=case¤tModuleID=0&branch=$case->branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); echo '  '; - echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); + echo ''; } ?> diff --git a/module/tree/control.php b/module/tree/control.php index 01147a880a..a1d925f3f1 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -362,7 +362,7 @@ class tree extends control $output .= ""; $output .= html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=$viewType¤tModuleID=0&branch=$branch", '', true), $viewType == 'line' ? $this->lang->tree->manageLine : $this->lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); $output .= '  '; - $output .= $viewType == 'line' ? html::a("#", $this->lang->refresh, '', "class='refresh' onclick='loadProductLines($rootID)'") : html::a("#", $this->lang->refresh, '', "class='refresh' onclick='loadProductModules($rootID)'"); + $output .= $viewType == 'line' ? html::a("javascript:void(0)", $this->lang->refresh, '', "class='refresh' onclick='loadProductLines($rootID)'") : html::a("javascript:void(0)", $this->lang->refresh, '', "class='refresh' onclick='loadProductModules($rootID)'"); $output .= ''; } die($output);