X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLayout%2FActionBar.pm;h=5345e9e14e72e75f7a9dacdd8f119df80426cfb7;hb=e6d132a190fc0777413850d82a807babf944bba0;hp=32c2f7d7ee9fe665f782d7dfc694459da7625bad;hpb=74ddcb2ddf9628234969283532eb4370ef45d7c9;p=kivitendo-erp.git diff --git a/SL/Layout/ActionBar.pm b/SL/Layout/ActionBar.pm index 32c2f7d7e..5345e9e14 100644 --- a/SL/Layout/ActionBar.pm +++ b/SL/Layout/ActionBar.pm @@ -10,6 +10,8 @@ use SL::Layout::ActionBar::ComboBox; use SL::Layout::ActionBar::Link; use SL::Layout::ActionBar::Separator; +use SL::Presenter::Tag qw(html_tag); + use constant HTML_CLASS => 'layout-actionbar'; use Rose::Object::MakeMethods::Generic ( @@ -30,14 +32,14 @@ sub pre_content { my $content = join '', map { $_->render } @{ $self->actions }; return if !$content; - $::request->presenter->html_tag('div', $content, class => HTML_CLASS); + html_tag('div', $content, class => HTML_CLASS); } sub javascripts_inline { join '', map { $_->script } @{ $_[0]->actions }; } -sub javascripts { +sub static_javascripts { 'kivi.ActionBar.js' }