Revision 48c18721
Von Sven Schöling vor fast 13 Jahren hinzugefügt
templates/webpages/is/form_header.html | ||
---|---|---|
172 | 172 |
</tr> |
173 | 173 |
<tr> |
174 | 174 |
<th align="right">[% 'Credit Note Date' | $T8 %]</th> |
175 |
<td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td> |
|
175 |
<td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate()') %]</td>
|
|
176 | 176 |
</tr> |
177 | 177 |
[%- ELSE %] |
178 | 178 |
<tr> |
... | ... | |
181 | 181 |
</tr> |
182 | 182 |
<tr> |
183 | 183 |
<th align="right">[% 'Invoice Date' | $T8 %]</th> |
184 |
<td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td> |
|
184 |
<td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate()') %]</td>
|
|
185 | 185 |
</tr> |
186 | 186 |
<tr> |
187 | 187 |
<th align="right">[% 'Due Date' | $T8 %]</th> |
... | ... | |
253 | 253 |
setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]'); |
254 | 254 |
setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]'); |
255 | 255 |
}); |
256 |
function set_duedate() { |
|
257 |
$.ajax({ |
|
258 |
url: 'is.pl?action=set_duedate', |
|
259 |
data: { |
|
260 |
invdate: $('#invdate').val(), |
|
261 |
payment_id: $('#payment_id').val(), |
|
262 |
}, |
|
263 |
dataType: 'text', |
|
264 |
success: function (data) { $('#duedate').val(data); } |
|
265 |
}) |
|
266 |
} |
|
256 | 267 |
//--> |
257 | 268 |
</script> |
258 | 269 |
|
Auch abrufbar als: Unified diff
set_duedate ajax auf jquery umgestellt