From: C. Braun Date: Fri, 13 May 2011 12:44:38 +0000 (+0200) Subject: runtime con js:setupPoints -- decpoint is not defined. Bug-ID: 1589 X-Git-Tag: release-2.6.3~25^2~38 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d018d87276e27a785ab119eb13fef83a5e15ba8c;p=kivitendo-erp.git runtime con js:setupPoints -- decpoint is not defined. Bug-ID: 1589 Das onLoad im body-Tag des templates wurde in $('document').ready Methode ausgelagert, weil der JavaScript-Code nicht in der richtigen Reihenfolge ausgefuehrt wurde. --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 1d98eabc0..97fc1d237 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -393,9 +393,8 @@ sub form_header { : ($creditwarning) ? "alert('$credittext')" : ""; - $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; - $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; - $TMPL_VAR{onload} = $onload; + $TMPL_VAR{dateformat} = $myconfig{dateformat}; + $TMPL_VAR{numberformat} = $myconfig{numberformat}; if ($form->{type} eq 'sales_order') { if (!$form->{periodic_invoices_config}) { diff --git a/templates/webpages/oe/form_header.html b/templates/webpages/oe/form_header.html index 0867d4abb..ce916e6a2 100644 --- a/templates/webpages/oe/form_header.html +++ b/templates/webpages/oe/form_header.html @@ -2,7 +2,7 @@ [%- USE HTML %] [%- USE LxERP %] [%- USE L %] - +
@@ -282,5 +282,10 @@