* Finish task #57095.
This commit is contained in:
@@ -30,4 +30,4 @@ td.flex span.project-type-label {min-width: 40px;}
|
||||
|
||||
.c-project{text-overflow: unset !important;}
|
||||
canvas {height: 28px;}
|
||||
.has-child.c-name.flex, .table-child-bottom > .c-name.flex {border-bottom: 1px solid #cbd0db;}
|
||||
.parent.has-child.c-name.flex, .table-child-bottom > .c-name.flex {border-bottom: 1px solid #cbd0db;}
|
||||
|
||||
@@ -16,8 +16,16 @@ $(function()
|
||||
{
|
||||
var fold = $(this).hasClass('collapsed');
|
||||
var parentID = $(this).closest('tr').attr('data-id');
|
||||
if(fold) $('.parent-' + parentID).hide();
|
||||
if(!fold) $('.parent-' + parentID).show();
|
||||
if(fold)
|
||||
{
|
||||
$('.parent-' + parentID).hide();
|
||||
$(this).closest('td').removeClass('parent');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('.parent-' + parentID).show();
|
||||
$(this).closest('td').addClass('parent');
|
||||
}
|
||||
});
|
||||
|
||||
if(useDatatable)
|
||||
@@ -26,6 +34,15 @@ $(function()
|
||||
{
|
||||
var parentID = $(this).closest('tr').attr('data-id');
|
||||
$('.parent-' + parentID).toggle();
|
||||
|
||||
if($('.parent-' + parentID).css('display') == 'none')
|
||||
{
|
||||
$(this).closest('td').removeClass('parent');
|
||||
}
|
||||
else
|
||||
{
|
||||
$(this).closest('td').addClass('parent');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -4178,6 +4178,7 @@ class executionModel extends model
|
||||
if($id == 'actions') $class .= ' text-center';
|
||||
|
||||
if($id == 'name' and !$child) $class .= ' sort-handler';
|
||||
if($id == 'name' and !empty($execution->children)) $class .= ' parent';
|
||||
if(in_array($id, array('estimate', 'consumed', 'left'))) $class .= ' hours';
|
||||
|
||||
$title = '';
|
||||
|
||||
Reference in New Issue
Block a user