From: Alf Høgemark Date: Wed, 19 Feb 2014 16:30:49 +0000 (+0100) Subject: webgui menus: Make top menu item clickable on mobile safari X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=db3096173d9118718c6191c48f581f1c0076dc2a;hp=-c webgui menus: Make top menu item clickable on mobile safari The menus in the new default theme does not work properly on ipad and I guess other devices using mobile safari. The reason is that tags without href is not marked as clickable by ios, and therefore no css hover effect is applied. The fix is either to add a href="#" attribute or a onclick="return true;" atribute on the tag. I prefer the href solution, since it is a no javascript solution. --- db3096173d9118718c6191c48f581f1c0076dc2a diff --git a/html/html/themes/ipfire/include/functions.pl b/html/html/themes/ipfire/include/functions.pl index 44ed9b758..f4c241a55 100644 --- a/html/html/themes/ipfire/include/functions.pl +++ b/html/html/themes/ipfire/include/functions.pl @@ -80,7 +80,7 @@ EOF foreach my $k1 ( sort keys %$menu ) { $link = getlink($menu->{$k1}); next if (!is_menu_visible($link) or $link eq ''); - print '
  • '.$menu->{$k1}->{'caption'}.''; + print '
  • '.$menu->{$k1}->{'caption'}.''; my $submenus = $menu->{$k1}->{'subMenu'}; &showsubmenu($submenus) if ($submenus); print "
  • ";