From ca4c56b46b808d2e13fbd8001036377a424c97ea Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 14 Nov 2012 13:59:33 +0100 Subject: [PATCH] =?utf8?q?Unterst=C3=BCtzung=20f=C3=BCr=20'href'-Men=C3=BC?= =?utf8?q?eintr=C3=A4ge=20im=20JavaScript-Men=C3=BC=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Layout/Javascript.pm | 2 +- templates/webpages/menu/menunew.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) %]
  • -- 2.20.1