X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fmenuv3.pl;h=a877dcf9cabf424ca9eae12f4d1480eb323acb19;hb=bdaa8c2f669c9ddcc2f0c8989fed52559d59be43;hp=ac8fe7b5ce76f36adc91362cb233103f62a8ac02;hpb=c539651d1de28cd51455867a0699ef14f5d18292;p=kivitendo-erp.git diff --git a/bin/mozilla/menuv3.pl b/bin/mozilla/menuv3.pl index ac8fe7b5c..a877dcf9c 100644 --- a/bin/mozilla/menuv3.pl +++ b/bin/mozilla/menuv3.pl @@ -43,7 +43,7 @@ sub display { $form->header(qq||); - print(qq|\n|); + print(qq|\n|); clock_line(); @@ -111,7 +111,7 @@ function clockon() { document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m)+":"+(s<10?'0'+s:s); var timer=setTimeout("clockon()", 1000); } -window.onload=clockon +//window.onload=clockon //--> @@ -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"});