X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FLayout%2FMenuLeft.pm;h=d365210c9332cd61a03cbca2b6dae2daa93aafe8;hb=249c0c6f38350cc67eb2304538aa4ef7f329eb79;hp=054757ffb0797bd7b14f30b25861540c51dc56d6;hpb=bfef134e5924a2272f3b97efd35f405a82a55efb;p=kivitendo-erp.git diff --git a/SL/Layout/MenuLeft.pm b/SL/Layout/MenuLeft.pm index 054757ffb..d365210c9 100644 --- a/SL/Layout/MenuLeft.pm +++ b/SL/Layout/MenuLeft.pm @@ -3,30 +3,27 @@ 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 ); } sub pre_content { - "
\n"; + "\n"; } sub section_menu {