From: Moritz Bunkus Date: Wed, 14 Nov 2012 12:59:33 +0000 (+0100) Subject: Unterstützung für 'href'-Menüeinträge im JavaScript-Menü gefixt X-Git-Tag: release-3.0.0beta2~12^2~16 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ca4c56b46b808d2e13fbd8001036377a424c97ea;p=kivitendo-erp.git Unterstützung für 'href'-Menüeinträge im JavaScript-Menü gefixt --- diff --git a/SL/Layout/Javascript.pm b/SL/Layout/Javascript.pm index a9a17481d..8d616093b 100644 --- a/SL/Layout/Javascript.pm +++ b/SL/Layout/Javascript.pm @@ -115,7 +115,7 @@ sub create_menu { my $item = { 'title' => $::locale->text($name) }; push @{ $all_items }, $item; - if ($menu_item->{submenu} || !defined($menu_item->{module})) { + if ($menu_item->{submenu} || (!defined($menu_item->{module}) && !defined($menu_item->{href}))) { $item->{subitems} = []; $item->{image} = _icon_path("$name.png"); $self->create_menu($menu, $item->{subitems}, "${parent}${name}", $depth * 1 + 1); diff --git a/templates/webpages/menu/menunew.html b/templates/webpages/menu/menunew.html index 4c51b6637..b54c9beb2 100644 --- a/templates/webpages/menu/menunew.html +++ b/templates/webpages/menu/menunew.html @@ -38,7 +38,7 @@ $(clockon); [%- FOREACH mainitem = menu_items %] [%- SET main_id = main_id + 1 %]
  • - + [%- HTML.escape(mainitem.title) %] [%- IF mainitem.subitems %] @@ -47,7 +47,7 @@ $(clockon); [%- FOREACH sub1item = mainitem.subitems %] [%- SET sub1_id = sub1_id + 1 %]
  • - + [%- HTML.escape(sub1item.title) %] [%- IF sub1item.subitems %] @@ -56,7 +56,7 @@ $(clockon); [%- FOREACH sub2item = sub1item.subitems %] [%- SET sub2_id = sub2_id + 1 %]
  • - + [%- HTML.escape(sub2item.title) %]