* adjust for execution field width for project build page.

This commit is contained in:
wangyidong
2022-12-22 19:24:49 +08:00
parent 92d3c36a9a
commit 0369dba360
2 changed files with 19 additions and 1 deletions
+16
View File
@@ -10,3 +10,19 @@ function changeProduct(productID)
link = createLink('project', 'build', 'projectID=' + projectID + '&type=product&param=' + productID);
location.href = link;
}
$(function()
{
$('td .execution').each(function()
{
$deleted = $(this).find('.label-danger');
if($deleted.length > 0)
{
$td = $(this).closest('td');
if($td.width() < $(this).width())
{
$(this).find('.executionName').css('display', 'inline-block').css('width', $td.width() - $deleted.width()).css('overflow', 'hidden').css('float', 'left');
}
}
})
})
+3 -1
View File
@@ -85,12 +85,14 @@
<?php if($project->multiple):?>
<?php if($build->execution):?>
<td class="c-name text-left" title='<?php echo $build->executionName;?>'>
<span class='execution'>
<?php $executionName = $build->executionName;?>
<?php if($build->executionDeleted) $executionName = "<del>$executionName</del>";?>
<?php if($build->executionDeleted) $executionName = "<del class='executionName'>$executionName</del>";?>
<?php echo $executionName;?>
<?php if($build->executionDeleted):?>
<span class='label label-danger'><?php echo $lang->build->deleted;?></span>
<?php endif; ?>
</span>
</td>
<?php else:?>
<td class="c-name text-left">