X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3aa5cee2f12c1dff757539b60196bf5e1be0a5d6..93b69b192a3dcd39d09b7a7e24b1482bdfa69e6b:/templates/webpages/ir/form_header.html diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 673f1a8d0..f5af2b451 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -212,16 +212,18 @@ [% END %] }); function set_duedate() { - $.ajax({ - url: 'ir.pl?action=get_duedate_vendor', - data: { - invdate: $('#invdate').val(), - vendor_id: $('input[name="vendor_id"]').val(), - old_duedate: $('#duedate').val(), - }, - dataType: 'text', - success: function (data) { $('#duedate').val(data); } - }) + setTimeout(function() { + $.ajax({ + url: 'ir.pl?action=get_duedate_vendor', + data: { + invdate: $('#invdate').val(), + vendor_id: $('input[name="vendor_id"]').val(), + old_duedate: $('#duedate').val(), + }, + dataType: 'text', + success: function (data) { $('#duedate').val(data); } + }) + }, 0); } //-->