* Finish task #5056.

This commit is contained in:
Yagami
2018-11-07 09:13:13 +08:00
parent 73d9b94261
commit 361ea2b415
2 changed files with 15 additions and 1 deletions
+7 -1
View File
@@ -4,11 +4,15 @@ function switchShow(result)
{
$('#rejectedReasonBox').show();
$('#preVersionBox').hide();
$('#priBox').hide();
$('#estimateBox').hide();
$('#assignedTo').val('closed');
$('#assignedTo').trigger("chosen:updated");
}
else if(result == 'revert')
else if(result == 'clarify')
{
$('#priBox').hide();
$('#estimateBox').hide();
$('#preVersionBox').show();
$('#rejectedReasonBox').hide();
$('#duplicateStoryBox').hide();
@@ -18,6 +22,8 @@ function switchShow(result)
}
else
{
$('#priBox').show();
$('#estimateBox').show();
$('#preVersionBox').hide();
$('#rejectedReasonBox').hide();
$('#duplicateStoryBox').hide();
+8
View File
@@ -38,6 +38,14 @@ var assignedTo = '<?php $story->lastEditedBy ? print($story->lastEditedBy) : pri
<th><?php echo $lang->story->rejectedReason;?></th>
<td><?php echo html::select('closedReason', $lang->story->reasonList, '', 'class=form-control onchange="setStory(this.value)"');?></td><td></td>
</tr>
<tr id='priBox' class='hide'>
<th><?php echo $lang->story->pri;?></th>
<td><?php echo html::select('pri', $lang->story->priList, '',"class='form-control' autocomplete='off'");?></td><td></td>
</tr>
<tr id='estimateBox' class='hide'>
<th><?php echo $lang->story->estimate;?></th>
<td><?php echo html::input('estimate', '', "class='form-control' autocomplete='off'");?></td><td></td>
</tr>
<tr id='duplicateStoryBox' class='hide'>
<th><?php echo $lang->story->duplicateStory;?></th>
<td><?php echo html::input('duplicateStory', '', "class='form-control' autocomplete='off'");?></td><td></td>