* Refactor the createscene view.
This commit is contained in:
@@ -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¤tModuleID=0&branch=$branch", '', true), $this->lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'");
|
||||
$output .= ' ';
|
||||
$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¤tModuleID=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>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user