From: Thomas Kasulke Date: Fri, 20 Apr 2007 08:46:06 +0000 (+0000) Subject: Anpassen an common.js (Datumsüberprüfung und Nummerüberprüfung) X-Git-Tag: release-2.4.3^2~479 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=bb79df1ed661bc2c4696100ffe4b2745ebd34b6d;p=kivitendo-erp.git Anpassen an common.js (Datumsüberprüfung und Nummerüberprüfung) --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 567a2590e..642ee5555 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -361,12 +361,12 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - {transdate}> + {transdate} onBlur=\"check_right_date_format(this)\"> text('button') . qq|> |; $button2 = qq| - {reqdate}> + {reqdate} onBlur=\"check_right_date_format(this)\"> text('button') . qq|> |; @@ -380,9 +380,9 @@ sub form_header { # without JavaScript Calendar $button1 = qq| - {transdate}>|; + {transdate} onBlur=\"check_right_date_format(this)\">|; $button2 = qq| - {reqdate}>|; + {reqdate} onBlur=\"check_right_date_format(this)\">|; } my @tmp; @@ -725,14 +725,17 @@ onchange="document.getElementById('update_button').click();">| . } elsif ($form->{resubmit}) { $onload = qq|document.oe.submit()|; } else { - $onload = "fokus()"; + $onload = "focus()"; } $credittext = $locale->text('Credit Limit exceeded!!!'); if ($creditwarning) { $onload = qq|alert('$credittext')|; } - + + $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; + $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; + $form->{"javascript"} .= qq||; # show history button js $form->{javascript} .= qq||; @@ -1400,12 +1403,12 @@ sub search { # with JavaScript Calendar $button1 = qq| - + text('button') . qq|> |; $button2 = qq| - + text('button') . qq|> |; @@ -1418,9 +1421,9 @@ sub search { # without JavaScript Calendar $button1 = qq| - |; + |; $button2 = qq| - |; + |; } $form->get_lists("projects" => { "key" => "ALL_PROJECTS",