From 154fc71cd5e85487146cbee709ebcd1083a6eb52 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 20 Apr 2007 08:35:25 +0000 Subject: [PATCH] =?utf8?q?Die=20Javascript-Funktion=20"fokus()"=20sollte?= =?utf8?q?=20immer=20definiert=20sein,=20um=20keine=20Javascript-Fehler=20?= =?utf8?q?zu=20produzieren.=20Ob=20sie=20auch=20was=20tut=20h=C3=A4ngt=20d?= =?utf8?q?ann=20davon=20ab,=20ob=20$form->{fokus}=20gesetzt=20ist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 1912f7560..c504f7152 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -375,13 +375,8 @@ sub header { \@page { size:landscape; } |; } - if ($self->{fokus}) { - $fokus = qq||; - } + + my $fokus = qq| document.$self->{fokus}.focus();| if ($self->{"fokus"}); #Set Calendar my $jsscript = ""; @@ -415,7 +410,15 @@ function fokus(){document.$self->{fokus}.focus();} $charset $jsscript $ajax - $fokus + + + -- 2.20.1