* Fix bug#29941.

This commit is contained in:
xieqiyu
2022-11-17 15:15:20 +08:00
parent 6c72e8755c
commit d2771d367b
3 changed files with 4 additions and 11 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
.c-id {width: 50px;}
.c-reason {width: 150px;}
.c-reason {width: 210px;}
td[id^="duplicateStoryBox"].required:after {top: 6px; right: 2px;}
td[id^="duplicateStoryBox"] {overflow: visible;}
td.reasons-td {overflow: visible;}
-6
View File
@@ -12,22 +12,16 @@ function setDuplicateAndChild(resolution, storyID)
{
$('#childStoryBox' + storyID).hide();
$('#duplicateStoryBox' + storyID).show();
$('#duplicateStoryTitle').show();
$('.form-actions').attr('colspan', 6);
}
else if(resolution == 'subdivided')
{
$('#duplicateStoryBox' + storyID).hide();
$('#childStoryBox' + storyID).show();
$('#duplicateStoryTitle').hide();
$('.form-actions').attr('colspan', 5);
}
else
{
$('#duplicateStoryBox' + storyID).hide();
$('#childStoryBox' + storyID).hide();
$('#duplicateStoryTitle').hide();
$('.form-actions').attr('colspan', 5);
}
}
+3 -4
View File
@@ -28,7 +28,6 @@
<th class='text-left'><?php echo $lang->story->title;?></th>
<th class='c-status'><?php echo $lang->story->status;?></th>
<th class='c-reason'><?php echo $lang->story->closedReason;?></th>
<th id='duplicateStoryTitle' class='w-p15' style='display:none;'><?php echo $lang->story->duplicateStory;?></th>
<th class='w-p30'><?php echo $lang->story->comment;?></th>
</tr>
</thead>
@@ -44,15 +43,15 @@
<td class='pd-0'>
<?php echo html::select("closedReasons[$storyID]", $reasonList, 'done', "class=form-control onchange=setDuplicateAndChild(this.value,$storyID) style='min-width: 80px'");?>
</td>
<td class='pd-0 w-p60 text-left' id='<?php echo 'duplicateStoryBox' . $storyID;?>' <?php if($story->closedReason != 'duplicate') echo "style='display:none'";?>>
<?php echo html::select("duplicateStoryIDList[$storyID]", array('' => '') + $productStoryList[$story->product][$story->branch], $story->duplicateStory ? $story->duplicateStory : '', "class='form-control' placeholder='{$lang->bug->duplicateTip}'");?>
</td>
<td class='pd-0' id='<?php echo 'childStoryBox' . $storyID;?>' <?php if($story->closedReason != 'subdivided') echo "style='display:none'";?>>
<?php echo html::input("childStoriesIDList[$storyID]", '', "class='form-control' placeholder='{$lang->idAB}'");?>
</td>
</tr>
</table>
</td>
<td class='text-left' id='<?php echo 'duplicateStoryBox' . $storyID;?>' <?php if($story->closedReason != 'duplicate') echo "style='display:none'";?>>
<?php echo html::select("duplicateStoryIDList[$storyID]", array('' => '') + $productStoryList[$story->product][$story->branch], $story->duplicateStory ? $story->duplicateStory : '', "class='form-control' placeholder='{$lang->bug->duplicateTip}'");?>
</td>
<td><?php echo html::input("comments[$storyID]", '', "class='form-control'");?></td>
</tr>
<?php endforeach;?>