Revision 90f4ba5d
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Presenter/RequirementSpecTextBlock.pm | ||
---|---|---|
14 | 14 |
sub requirement_spec_text_block_jstree_data { |
15 | 15 |
my ($self, $text_block, %params) = @_; |
16 | 16 |
|
17 |
my $class = 'text-block-context-menu'; |
|
18 |
$class .= ' flagged' if $text_block->is_flagged; |
|
19 |
|
|
17 | 20 |
return { |
18 | 21 |
data => $text_block->title || '', |
19 | 22 |
metadata => { id => $text_block->id, type => 'text-block' }, |
20 |
attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => 'text-block-context-menu' },
|
|
23 |
attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => $class },
|
|
21 | 24 |
}; |
22 | 25 |
} |
23 | 26 |
|
Auch abrufbar als: Unified diff
Pflichtenhefte: Textblöcke, Abschnitte und Funktionsblöcke markieren können