projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HTML zu LaTeX: gewisse kaputte Konstrukte vom CKEditor entfernen
[kivitendo-erp.git]
/
SL
/
Presenter
/
RequirementSpecTextBlock.pm
diff --git
a/SL/Presenter/RequirementSpecTextBlock.pm
b/SL/Presenter/RequirementSpecTextBlock.pm
index
dc045ff
..
0f8c561
100644
(file)
--- a/
SL/Presenter/RequirementSpecTextBlock.pm
+++ b/
SL/Presenter/RequirementSpecTextBlock.pm
@@
-2,23
+2,26
@@
package SL::Presenter::RequirementSpecTextBlock;
use strict;
use strict;
-use parent qw(Exporter);
-
use Exporter qw(import);
use Exporter qw(import);
-our @EXPORT = qw(requirement_spec_text_block_jstree_data);
+our @EXPORT
_OK
= qw(requirement_spec_text_block_jstree_data);
use Carp;
use SL::JSON;
sub requirement_spec_text_block_jstree_data {
use Carp;
use SL::JSON;
sub requirement_spec_text_block_jstree_data {
- my ($self, $text_block, %params) = @_;
+ my ($text_block, %params) = @_;
+
+ my $class = 'text-block-context-menu tooltip';
+ $class .= ' flagged' if $text_block->is_flagged;
return {
data => $text_block->title || '',
metadata => { id => $text_block->id, type => 'text-block' },
return {
data => $text_block->title || '',
metadata => { id => $text_block->id, type => 'text-block' },
- attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class =>
'text-block-context-menu'
},
+ attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class =>
$class, title => $text_block->content_excerpt
},
};
}
};
}
+sub jstree_data { goto &requirement_spec_text_block_jstree_data }
+
1;
1;