From d018d87276e27a785ab119eb13fef83a5e15ba8c Mon Sep 17 00:00:00 2001 From: "C. Braun" Date: Fri, 13 May 2011 14:44:38 +0200 Subject: [PATCH] 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. --- bin/mozilla/oe.pl | 5 ++--- templates/webpages/oe/form_header.html | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) 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 @@ -- 2.20.1