From: Sven Schöling Date: Mon, 17 Oct 2011 10:17:31 +0000 (+0200) Subject: doctype setzen. neuere browser kommen gut mit dem javascript klar, solange transition... X-Git-Tag: release-2.7.0beta1~215^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7ef8fa0821792bb595822d455bc78d68b920d157;p=kivitendo-erp.git doctype setzen. neuere browser kommen gut mit dem javascript klar, solange transitional gesetzt ist. --- 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|