* Fix bug of qa statistic block.
This commit is contained in:
@@ -50,8 +50,9 @@
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php $buildIndex = 1;?>
|
||||
<?php foreach($product->builds as $build):?>
|
||||
<div class="table-row" id='bugBox<?php echo $build->id;?>'>
|
||||
<div class="table-row <?php if($buildIndex != 1) echo 'hidden';?>" id='bugBox<?php echo $build->id;?>'>
|
||||
<div class="col-5 text-middle text-center">
|
||||
<div class="progress-pie inline-block space progress-pie-100" data-value="<?php echo $build->assignedRate;?>" data-doughnut-size="80">
|
||||
<canvas width="100" height="100" style="width: 100px; height: 100px;"></canvas>
|
||||
@@ -115,6 +116,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $buildIndex++;?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
<?php $index++;?>
|
||||
@@ -136,9 +138,10 @@ $(function()
|
||||
{
|
||||
$('[name^=build]').change(function()
|
||||
{
|
||||
$(this).parents('.tab-pane').find('.table-row').addClass('hidden');
|
||||
$('#bugBox' + $(this).val()).removeClass('hidden');
|
||||
var $tab = $('#bugBox' + $(this).val());
|
||||
$tab.removeClass('hidden');
|
||||
$tab.find('.progress-pie').progressPie();
|
||||
$(this).parents('.tab-pane').find('.table-row').not($tab).addClass('hidden');
|
||||
});
|
||||
$('[name^=build]').change();
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
<table class='table table-form mg-0 table-bordered' style='border: 1px solid #ddd'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='w-40px text-right'><?php echo $lang->testcase->stepID;?></th>
|
||||
<th class='w-50px text-right'><?php echo $lang->testcase->stepID;?></th>
|
||||
<th width="45%"><?php echo $lang->testcase->stepDesc;?></th>
|
||||
<th><?php echo $lang->testcase->stepExpect;?></th>
|
||||
<th class='step-actions'><?php echo $lang->actions;?></th>
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user