X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FPresenter%2FRequirementSpecItem.pm;h=faafd2685398050ab1b9d3e5373ce2ef135f4575;hb=33e8932ce36d4fbe58a9649b1a233c54f6400d6d;hp=c62032517396285bc44823e0822cb81410ec4f06;hpb=6af6a67b3c7ceafc4c247340df63d46b13b12529;p=kivitendo-erp.git diff --git a/SL/Presenter/RequirementSpecItem.pm b/SL/Presenter/RequirementSpecItem.pm index c62032517..faafd2685 100644 --- a/SL/Presenter/RequirementSpecItem.pm +++ b/SL/Presenter/RequirementSpecItem.pm @@ -12,7 +12,7 @@ use Carp; sub requirement_spec_item_tree_node_title { my ($self, $item) = @_; - return join(' ', map { $_ || '' } ($item->fb_number, $self->truncate($item->parent_id ? $item->description : $item->title, at => 30))); + return join(' ', map { $_ || '' } ($item->fb_number, $self->truncate($item->parent_id ? $item->description_as_stripped_html : $item->title, at => 30))); } sub requirement_spec_item_jstree_data { @@ -20,13 +20,13 @@ sub requirement_spec_item_jstree_data { my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->children_sorted }; my $type = !$item->parent_id ? 'section' : 'function-block'; - my $class = $type . '-context-menu'; + my $class = $type . '-context-menu tooltip'; $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 => $class }, + attr => { id => "fb-" . $item->id, href => $params{href} || '#', class => $class, title => $item->content_excerpt }, children => \@children, }; }