X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/js/kivi.Letter.js diff --git a/js/kivi.Letter.js b/js/kivi.Letter.js new file mode 100644 index 000000000..1f2865cd6 --- /dev/null +++ b/js/kivi.Letter.js @@ -0,0 +1,11 @@ +namespace('kivi.Letter', function(ns) { + "use strict"; + + $(function() { + $('#letter_customer_id,#letter_vendor_id').change(function(){ + var data = $('form').serializeArray(); + data.push({ name: 'action', value: 'Letter/update_contacts' }); + $.post('controller.pl', data, kivi.eval_json_result); + }); + }); +});