X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FLayout%2FMenuLeft.pm;h=c0e937ab8b6a54980952ead5f0850ad647db1d94;hb=b6d6ad18d758a2725f46a6706b709fbf92d8d0eb;hp=2cee4ea29f5c13e62ae15812665e8b1c5e3eb7ad;hpb=fc41222c61dbee590005f04c50e8603581462543;p=kivitendo-erp.git diff --git a/SL/Layout/MenuLeft.pm b/SL/Layout/MenuLeft.pm index 2cee4ea29..c0e937ab8 100644 --- a/SL/Layout/MenuLeft.pm +++ b/SL/Layout/MenuLeft.pm @@ -20,7 +20,10 @@ sub javascripts_inline { } sub javascripts { - 'js/jquery.cookie.js'; + qw( + js/jquery.cookie.js + js/switchmenuframe.js + ); } sub pre_content { @@ -67,8 +70,6 @@ sub section_menu { $menuitem->{href} .= $::form->escape($value, 1); } - my $anchor = $menuitem->{href}; - my @common_args = ($label, $spacer, "$id_prefix\_$id"); if (!$level) { # toplevel @@ -80,7 +81,7 @@ sub section_menu { #make_image(label => 'submenu'), push @items, section_menu($menu, $item, "$id_prefix\_$id"); } elsif ($menuitem->{module}) { - push @items, [ @common_args, "icon16 $icon_class", 'i', $anchor ]; + push @items, [ @common_args, "icon16 $icon_class", 'i', $menuitem->{href}, $menuitem->{target} ]; #make_image(size => 16, label => $item), } } continue { @@ -126,6 +127,8 @@ Each entry is another array with the following fields: 2: unique id 3: icon classes 4: role classes + 5: href + 6: target From each entry the following dom will be generated, with [0] being entry 0 of the data array: