From: Moritz Bunkus Date: Mon, 29 Jan 2007 14:24:48 +0000 (+0000) Subject: CSS-MenĂ¼: keinen Zeilenumbruch mehr erzwingen. X-Git-Tag: release-2.4.2~222 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5a7adba1367ee8535be060540b8b7f889b3da124;p=kivitendo-erp.git CSS-MenĂ¼: keinen Zeilenumbruch mehr erzwingen. --- diff --git a/bin/mozilla/menuv3.pl b/bin/mozilla/menuv3.pl index ac8fe7b5c..18ab33433 100644 --- a/bin/mozilla/menuv3.pl +++ b/bin/mozilla/menuv3.pl @@ -140,29 +140,6 @@ sub acc_menu { return print_menu($menu); } -sub my_length { - my ($s) = @_; - my $len = 0; - my $i; - my $skip = 0; - - for ($i = 0; $i < length($s); $i++) { - my $c = substr($s, $i, 1); - if ($skip && ($c eq ";")) { - $skip = 0; - } elsif ($skip) { - next; - } elsif ($c eq "&") { - $skip = 1; - $len++; - } else { - $len++; - } - } - - return $len; -} - sub print_menu { my ($menu, $parent, $depth) = @_; my $html; @@ -183,8 +160,6 @@ sub print_menu { my $menu_title = $locale->text($item); my $menu_text = $menu_title; - $menu_text =~ s/ /
/ if ($parent && (my_length($menu_text) >= 17)); - my $target = "main_window"; $target = $menu_item->{"target"} if ($menu_item->{"target"});