This commit is contained in:
holan20180123
2021-03-18 09:44:23 +08:00
parent 006b551d01
commit ccd93e4b5b
3 changed files with 8 additions and 4 deletions
-1
View File
@@ -9,7 +9,6 @@ html[lang='en'] #deadlineTd .input-group-addon {padding: 5px 18px;}
.bootbox-prompt .modal-dialog {width: 500px; margin-top: 10%;}
#buildBoxActions {padding-left: 15px;}
#executionIdBox {display: block;}
#module + .chosen-container-single .chosen-single,
#task + .chosen-container-single .chosen-single,
+1
View File
@@ -272,6 +272,7 @@ function loadProductExecutions(productID, projectID = 0)
$('#executionIdBox').load(link, function()
{
$(this).find('select').chosen();
if(typeof(bugExecution) == 'string') $('#executionIdBox').prepend("<span class='input-group-addon' style='border-left-width: 1px;'>" + bugExecution + "</span>");
if(required) $(this).addClass('required');
});
}
+7 -3
View File
@@ -72,7 +72,7 @@ js::set('oldProjectID', $projectID);
</tr>
<?php $showExecution = (strpos(",$showFields,", ',execution,') !== false);?>
<tr>
<th><?php echo ($showExecution) ? $lang->bug->execution : $lang->bug->type;?></th>
<th><?php echo ($showExecution) ? $lang->bug->project : $lang->bug->type;?></th>
<?php if(!$showExecution):?>
<?php $showOS = strpos(",$showFields,", ',os,') !== false;?>
@@ -97,8 +97,11 @@ js::set('oldProjectID', $projectID);
<div class='table-col' id='projectBox'>
<?php echo html::select('project', $projects, $projectID, "class='form-control chosen' onchange='loadProductExecutions({$productID}, this.value)'");?>
</div>
<div class='table-col' id='executionIdBox'>
<?php echo html::select('execution', $executions, $executionID, "class='form-control chosen' onchange='loadExecutionRelated(this.value)'");?>
<div class='table-col'>
<div class='input-group' id='executionIdBox'>
<span class='input-group-addon fix-border'><?php echo $lang->bug->execution;?></span>
<?php echo html::select('execution', $executions, $executionID, "class='form-control chosen' onchange='loadExecutionRelated(this.value)'");?>
</div>
</div>
</td>
<?php endif;?>
@@ -322,6 +325,7 @@ js::set('oldProjectID', $projectID);
</div>
</div>
<?php js::set('bugModule', $lang->bug->module);?>
<?php js::set('bugExecution', $lang->bug->execution);?>
<script>
$(function(){parent.$('body.hide-modal-close').removeClass('hide-modal-close');})
</script>