Revision d018d872
Von C. Braun vor mehr als 13 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
393 | 393 |
: ($creditwarning) ? "alert('$credittext')" |
394 | 394 |
: ""; |
395 | 395 |
|
396 |
$onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; |
|
397 |
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; |
|
398 |
$TMPL_VAR{onload} = $onload; |
|
396 |
$TMPL_VAR{dateformat} = $myconfig{dateformat}; |
|
397 |
$TMPL_VAR{numberformat} = $myconfig{numberformat}; |
|
399 | 398 |
|
400 | 399 |
if ($form->{type} eq 'sales_order') { |
401 | 400 |
if (!$form->{periodic_invoices_config}) { |
templates/webpages/oe/form_header.html | ||
---|---|---|
2 | 2 |
[%- USE HTML %] |
3 | 3 |
[%- USE LxERP %] |
4 | 4 |
[%- USE L %] |
5 |
<body onLoad="[% onload %]">
|
|
5 |
<body> |
|
6 | 6 |
|
7 | 7 |
<form method="post" name="oe" action="[% script %]"> |
8 | 8 |
|
... | ... | |
282 | 282 |
<!-- |
283 | 283 |
Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" }); |
284 | 284 |
Calendar.setup({ inputField : "reqdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" }); |
285 |
|
|
286 |
$('document').ready(function(){ |
|
287 |
setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]'); |
|
288 |
setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]'); |
|
289 |
}); |
|
285 | 290 |
//--> |
286 | 291 |
</script> |
Auch abrufbar als: Unified diff
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.