X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FLayout%2FMenuLeft.pm;h=d365210c9332cd61a03cbca2b6dae2daa93aafe8;hb=249c0c6f38350cc67eb2304538aa4ef7f329eb79;hp=2f99944d08fea1b943f68ac4737fafe80cb784da;hpb=b70da193f851ac4e0d9d0b098a75e098e1bfd64c;p=kivitendo-erp.git diff --git a/SL/Layout/MenuLeft.pm b/SL/Layout/MenuLeft.pm index 2f99944d0..d365210c9 100644 --- a/SL/Layout/MenuLeft.pm +++ b/SL/Layout/MenuLeft.pm @@ -3,25 +3,22 @@ package SL::Layout::MenuLeft; use strict; use parent qw(SL::Layout::Base); -use URI; - use List::MoreUtils qw(apply); +use SL::JSON qw(to_json); +use URI; sub stylesheets { qw(icons16.css icons24.css menu.css) } sub javascripts_inline { - my $self = shift; - my $sections = [ section_menu($self->menu) ]; - $self->presenter->render('menu/menu', - sections => $sections, - ) + "\$(function(){kivi.LeftMenu.init(@{[ to_json([ section_menu($_[0]->menu) ]) ]})});" } sub javascripts { qw( js/jquery.cookie.js + js/kivi.LeftMenu.js ); } @@ -29,14 +26,6 @@ sub pre_content { "
\n"; } -sub start_content { - " \n"; -} - sub section_menu { my ($menu) = @_; my @items;