Dialogbuchen: Beim Aufrufen bestehender Buchungen die Projektnummern richtig in der...
[kivitendo-erp.git] / bin / mozilla / menuv3.pl
index ac8fe7b..a877dcf 100644 (file)
@@ -43,7 +43,7 @@ sub display {
   $form->header(qq|<link rel="stylesheet" href="css/menuv3.css?id=| .
                 int(rand(100000)) . qq|" type="text/css">|);
 
-  print(qq|<body>\n|);
+  print(qq|<body style="padding:0px; margin:0px;">\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
 //-->
 </script>
 <table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
@@ -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/ /<br>/ if ($parent && (my_length($menu_text) >= 17));
-
     my $target = "main_window";
     $target = $menu_item->{"target"} if ($menu_item->{"target"});