* Finish task #57095.

This commit is contained in:
tianshujie
2022-06-15 16:52:26 +08:00
parent 7f000fd968
commit 1f0f1ff36e
3 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -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;}
+19 -2
View File
@@ -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');
}
});
}
});
+1
View File
@@ -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 = '';