* Refactor the createscene view.

This commit is contained in:
daitingting
2023-06-27 07:00:34 +00:00
parent d71bd75372
commit 6d35ded99e
3 changed files with 153 additions and 5 deletions
+4 -5
View File
@@ -2639,7 +2639,7 @@ class testcase extends control
else
{
$changeFunc = '';
if($viewType == 'bug' or $viewType == 'case') $changeFunc = "onchange='loadModuleRelatedNew()'";
if($viewType == 'bug') $changeFunc = "onchange='loadModuleRelatedNew()'";
if($viewType == 'task') $changeFunc = "";
$field = $fieldID ? "modules[$fieldID]" : 'module';
@@ -2649,10 +2649,9 @@ class testcase extends control
$output = html::select("$field", $optionMenu, $currentModuleID, "class='form-control' $changeFunc");
if(count($optionMenu) == 1 and $needManage)
{
$output .= "<span class='input-group-addon'>";
$output .= html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=$viewType&currentModuleID=0&branch=$branch", '', true), $this->lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'");
$output .= '&nbsp; ';
$output .= html::a("javascript:void(0)", $this->lang->refreshIcon, '', "class='refresh' onclick='loadProductModulesNew($rootID)'");
$output .= "<div class='input-group-btn flex'>";
$output .= html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=$viewType&currentModuleID=0&branch=$branch", '', true), $this->lang->tree->manage, '', "class='btn' data-toggle='modal'");
$output .= html::a("javascript:;", $this->lang->refresh, '', "class='refresh btn' onclick='loadProductModule($rootID)'");
$output .= '</span>';
}
}