From: Moritz Bunkus Date: Tue, 28 Dec 2010 12:48:46 +0000 (+0100) Subject: Seitentitel via JavaScript setzen X-Git-Tag: release-2.6.2beta1~51^2~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=12e513005cda066d28dd1ed69439e916906cfbd3;p=kivitendo-erp.git Seitentitel via JavaScript setzen Stammt ursprünglich aus 3cf46a171f748ecacb6fa0bf1e1df81c227fb117 ("Teil 1 von: Usability und Lokalisierung de und de_DE (neu)") und wurde in 50365526 ("Form::header") überschrieben. --- diff --git a/SL/Form.pm b/SL/Form.pm index 4360c0740..df071c045 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -654,6 +654,19 @@ sub header { push @header, sprintf "", join ' - ', grep $_, $self->{title}, $self->{login}, $::myconfig{dbname}, $self->{version} if $self->{title}; + # if there is a title, we put some JavaScript in to the page, wich writes a + # meaningful title-tag for our frameset. + my $title_hack = ''; + if ($self->{title}) { + $title_hack = qq| + |; + } + # output print $self->create_http_response(content_type => 'text/html', charset => $db_charset); print "\n" @@ -680,6 +693,7 @@ EOT $extra_code + $title_hack EOT