Revision 1ccc89c8
Von Bernd Bleßmann vor fast 6 Jahren hinzugefügt
templates/webpages/generic/calculate_qty.html | ||
---|---|---|
5 | 5 |
<form name="Form"> |
6 | 6 |
|
7 | 7 |
<input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]"> |
8 |
<input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]"> |
|
8 | 9 |
|
9 | 10 |
<table width="100%"> |
10 | 11 |
<tr><td>[% 'Please insert object dimensions below.' | $T8 %]</td></tr> |
... | ... | |
40 | 41 |
[%- END %] |
41 | 42 |
var result = [% formel %]; |
42 | 43 |
result = number_format(result, 2, '[% MYCONFIG.numberformat %]'); |
43 |
window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = result; |
|
44 |
if (document.Form.input_id.value) { |
|
45 |
window.opener.document.getElementById(document.Form.input_id.value).value = result; |
|
46 |
} else { |
|
47 |
window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = result; |
|
48 |
} |
|
44 | 49 |
self.close(); |
45 | 50 |
} |
46 | 51 |
|
Auch abrufbar als: Unified diff
calculate_qty (Formel): Input- und Formel-Feld auch als Dom-Id übergeben können