Revision 1f592a0f
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Presenter/RequirementSpecItem.pm | ||
---|---|---|
13 | 13 |
my ($self, $item, %params) = @_; |
14 | 14 |
|
15 | 15 |
my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->sorted_children }; |
16 |
my $type = !$item->parent_id ? 'section' : 'functionblock'; |
|
16 |
my $type = !$item->parent_id ? 'section' : 'function-block';
|
|
17 | 17 |
|
18 | 18 |
return { |
19 |
data => join(' ', map { $_ || '' } ($item->fb_number, $item->title)), |
|
19 |
data => join(' ', map { $_ || '' } ($item->fb_number, $item->title, '<' . $item->id . '>')),
|
|
20 | 20 |
metadata => { id => $item->id, type => $type }, |
21 |
attr => { id => "fb-" . $item->id, href => $params{href} || '#' }, |
|
21 |
attr => { id => "fb-" . $item->id, href => $params{href} || '#', class => $type . '-context-menu' },
|
|
22 | 22 |
children => \@children, |
23 | 23 |
}; |
24 | 24 |
} |
Auch abrufbar als: Unified diff
Pflichtenhefte: Auflisten von Abschnitten