From 7ef8fa0821792bb595822d455bc78d68b920d157 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 17 Oct 2011 12:17:31 +0200 Subject: [PATCH] doctype setzen. neuere browser kommen gut mit dem javascript klar, solange transitional gesetzt ist. --- SL/Form.pm | 9 +++++++-- bin/mozilla/menu.pl | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 0268aaf2e..f50cba70d 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -722,10 +722,15 @@ sub header { |; } + my %doctypes = ( + strict => qq||, + transitional => qq||, + frameset => qq||, + ); + # output print $self->create_http_response(content_type => 'text/html', charset => $db_charset); - print "\n" - if $ENV{'HTTP_USER_AGENT'} =~ m/MSIE\s+\d/; # Other browsers may choke on menu scripts with DOCTYPE. + print $doctypes{$params{doctype} || 'transitional'}, $/; print < diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index 15c43efe5..791095739 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -59,7 +59,7 @@ sub display { $callback = "login.pl?action=company_logo" if $callback =~ /^(\.\/)?$/; my $framesize = _calc_framesize(); - $::form->header; + $::form->header(doctype => 'frameset'); print qq| -- 2.20.1