This commit is contained in:
mayue
2022-07-01 08:23:08 +08:00
parent 70a58529fe
commit 828d476956
4 changed files with 10 additions and 6 deletions
+2
View File
@@ -16,6 +16,8 @@ $(function()
});
$('#needNotReview').change();
if($('#reviewer').val()) loadAssignedTo();
if($('.tabs .tab-content .tab-pane.active').children().length == 0) $('.tabs .nav-tabs li.active').css('border-bottom', '1px solid #ccc');
});
+4 -2
View File
@@ -17,6 +17,8 @@ $(function()
});
$('#needNotReview').change();
if($('#reviewer').val()) loadAssignedTo();
// init pri selector
$('#pri').on('change', function()
{
@@ -34,13 +36,13 @@ $(function()
if($.inArray(source, feedbackSource) != -1)
{
$('#feedbackBox').removeClass('hidden');
$('#reviewerBox').attr('colspan', 1);
$('#reviewerBox').attr('colspan', $('#assignedToBox').hasClass('hidden') ? 2 : 1);
$('#assignedToBox').attr('colspan', 1);
}
else
{
$('#feedbackBox').addClass('hidden');
$('#reviewerBox').attr('colspan', 2);
$('#reviewerBox').attr('colspan', $('#assignedToBox').hasClass('hidden') ? 4 : 2);
$('#assignedToBox').attr('colspan', 2);
}
});
+2 -2
View File
@@ -24,7 +24,7 @@
<table class='table table-form'>
<tr>
<th class='w-80px'><?php echo $lang->story->reviewedBy;?></th>
<td colspan='1' id='reviewerBox'>
<td colspan='2' id='reviewerBox'>
<div class="input-group">
<?php echo html::select('reviewer[]', $productReviewers, $reviewer, "class='form-control picker-select' multiple" . ($this->story->checkForceReview() ? ' required' : ''));?>
<?php if(!$this->story->checkForceReview()):?>
@@ -34,7 +34,7 @@
<?php endif;?>
</div>
</td>
<td colspan='1' id='assignedToBox'>
<td colspan='1' id='assignedToBox' class='hidden'>
<div class='input-group'>
<div class="input-group-addon"><?php echo $lang->story->assignedTo;?></div>
<?php echo html::select('assignedTo', $users, '', "class='form-control picker-select'");?>
+2 -2
View File
@@ -103,7 +103,7 @@
<?php endif;?>
<tr>
<th><?php echo $lang->story->reviewedBy;?></th>
<td colspan='<?php echo $type == 'story' ? 2 : 1;?>' id='reviewerBox'>
<td colspan='<?php echo $type == 'story' ? 4 : 2;?>' id='reviewerBox'>
<div class="table-row">
<?php if(!$this->story->checkForceReview()):?>
<div class="table-col">
@@ -124,7 +124,7 @@
<?php endif;?>
</div>
</td>
<td colspan='<?php echo $type == 'story' ? 2 : 1;?>' id='assignedToBox'>
<td colspan='<?php echo $type == 'story' ? 2 : 1;?>' id='assignedToBox' class='hidden'>
<div class='input-group'>
<div class="input-group-addon"><?php echo $lang->story->assignedTo;?></div>
<?php echo html::select('assignedTo', $users, '', "class='form-control picker-select'");?>