* adjust for execution field width for project build page.
This commit is contained in:
@@ -10,3 +10,19 @@ function changeProduct(productID)
|
||||
link = createLink('project', 'build', 'projectID=' + projectID + '&type=product¶m=' + 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');
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user