X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/49644f8f89ef5e337763ab013b8cdce6d28f4493..90f4ba5dc6212592754cdddd082640103ee15884:/SL/Presenter/RequirementSpecItem.pm diff --git a/SL/Presenter/RequirementSpecItem.pm b/SL/Presenter/RequirementSpecItem.pm index b7f377e2c..f1c30bb50 100644 --- a/SL/Presenter/RequirementSpecItem.pm +++ b/SL/Presenter/RequirementSpecItem.pm @@ -20,11 +20,13 @@ sub requirement_spec_item_jstree_data { my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->sorted_children }; my $type = !$item->parent_id ? 'section' : 'function-block'; + my $class = $type . '-context-menu'; + $class .= ' flagged' if $item->is_flagged; return { data => $self->requirement_spec_item_tree_node_title($item), metadata => { id => $item->id, type => $type }, - attr => { id => "fb-" . $item->id, href => $params{href} || '#', class => $type . '-context-menu' }, + attr => { id => "fb-" . $item->id, href => $params{href} || '#', class => $class }, children => \@children, }; }