From: Moritz Bunkus Date: Wed, 6 Mar 2013 14:04:17 +0000 (+0100) Subject: RequirementSpec-Presenter in RequirementSpecTextBlock umbenannt X-Git-Tag: release-3.2.0beta~467^2~244 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=bf9adfbab97311abf09cbbcf9f3d72f707d8a3af;p=kivitendo-erp.git RequirementSpec-Presenter in RequirementSpecTextBlock umbenannt --- diff --git a/SL/Presenter/RequirementSpec.pm b/SL/Presenter/RequirementSpec.pm deleted file mode 100644 index b8a202ddb..000000000 --- a/SL/Presenter/RequirementSpec.pm +++ /dev/null @@ -1,24 +0,0 @@ -package SL::Presenter::RequirementSpec; - -use strict; - -use parent qw(Exporter); - -use Exporter qw(import); -our @EXPORT = qw(requirement_spec_text_block_jstree_data); - -use Carp; - -use SL::JSON; - -sub requirement_spec_text_block_jstree_data { - my ($self, $text_block, %params) = @_; - - return { - data => $text_block->title || '', - metadata => { id => $text_block->id, type => 'textblock' }, - attr => { id => "tb-" . $text_block->id, href => $params{href} || '#' }, - }; -} - -1; diff --git a/SL/Presenter/RequirementSpecTextBlock.pm b/SL/Presenter/RequirementSpecTextBlock.pm new file mode 100644 index 000000000..8e2eb81a1 --- /dev/null +++ b/SL/Presenter/RequirementSpecTextBlock.pm @@ -0,0 +1,24 @@ +package SL::Presenter::RequirementSpecTextBlock; + +use strict; + +use parent qw(Exporter); + +use Exporter qw(import); +our @EXPORT = qw(requirement_spec_text_block_jstree_data); + +use Carp; + +use SL::JSON; + +sub requirement_spec_text_block_jstree_data { + my ($self, $text_block, %params) = @_; + + return { + data => $text_block->title || '', + metadata => { id => $text_block->id, type => 'textblock' }, + attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => 'text-block-context-menu' }, + }; +} + +1;