X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fkopf.pl;h=ed11e522be1af6b8b712a8ee2308d6e885f04631;hb=32fa27cee3f69042ee74e8efecf1f4396ea5c7bb;hp=ad0b8171ecad9cfdc00410e8789e8fc903239276;hpb=d2d63d80de28c7356e81eb1143d729e4415cd1b4;p=kivitendo-erp.git diff --git a/bin/mozilla/kopf.pl b/bin/mozilla/kopf.pl index ad0b8171e..ed11e522b 100644 --- a/bin/mozilla/kopf.pl +++ b/bin/mozilla/kopf.pl @@ -107,25 +107,19 @@ window.onload=clockon |; -# -my $framesize = _calc_framesize(); # framesize calculation as in menu.pl is only a quick and dirty hack here - # it would be better to use a global or config variable - -# is there any better solution then the JS-Link for Back? Possibly with the callback variable? - print qq| |; - if ($framesize ne 240) { # only show the the links in case of "links" in $ENV{HTTP_USER_AGENT} (see sub _calc_framesize) + if ( !($ENV{HTTP_USER_AGENT} =~ /links/i) ) { # do not show the the links in case of "links" in HTTP_USER_AGENT print qq| - |; } print qq| @@ -137,17 +131,6 @@ print qq| |; - -sub _calc_framesize { - my $is_lynx_browser = $ENV{HTTP_USER_AGENT} =~ /links/i; - my $is_mobile_browser = $ENV{HTTP_USER_AGENT} =~ /mobile/i; - my $is_mobile_style = $::form->{stylesheet} =~ /mobile/i; - - return $is_mobile_browser && $is_mobile_style ? 130 - : $is_lynx_browser ? 240 - : 180; -} - } 1;
- [| . $locale->text('Menu') . qq|] -  [| . $locale->text('New Win/Tab') . qq|] -  [| . $locale->text('Print') . qq|] -  [| . $locale->text('Back') . qq|] -  [| . $locale->text('Fwd') . qq|] + + [| . $locale->text('Menu') . qq|] +  [| . $locale->text('New Win/Tab') . qq|] +  [| . $locale->text('Print') . qq|] +  [| . $locale->text('Back') . qq|] +  [| . $locale->text('Fwd') . qq|]