X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FPresenter%2FRequirementSpecItem.pm;h=ed4f56762aa9e7111d83fd9e21534cc1496fd433;hb=1f592a0f4f88893b5c2cb29b2d10e2d07b444ac0;hp=cdf05cf3611dbe16e7a516873c9232e68f53dc11;hpb=e2cad7d4056cf13ba8df9d4127e76273c56bf305;p=kivitendo-erp.git diff --git a/SL/Presenter/RequirementSpecItem.pm b/SL/Presenter/RequirementSpecItem.pm index cdf05cf36..ed4f56762 100644 --- a/SL/Presenter/RequirementSpecItem.pm +++ b/SL/Presenter/RequirementSpecItem.pm @@ -13,12 +13,12 @@ sub requirement_spec_item_jstree_data { my ($self, $item, %params) = @_; my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->sorted_children }; - my $type = !$item->parent_id ? 'section' : 'functionblock'; + my $type = !$item->parent_id ? 'section' : 'function-block'; return { - data => join(' ', map { $_ || '' } ($item->fb_number, $item->title)), + data => join(' ', map { $_ || '' } ($item->fb_number, $item->title, '<' . $item->id . '>')), metadata => { id => $item->id, type => $type }, - attr => { id => "fb-" . $item->id, href => $params{href} || '#' }, + attr => { id => "fb-" . $item->id, href => $params{href} || '#', class => $type . '-context-menu' }, children => \@children, }; }