X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/049e49fea3e4a3c7c78d7aebf055936b3cab40c5..549f187d3a2b1d15f96c4556714666ed954447bb:/js/kivi.io.js diff --git a/js/kivi.io.js b/js/kivi.io.js index 109b20010..4758583e2 100644 --- a/js/kivi.io.js +++ b/js/kivi.io.js @@ -43,4 +43,10 @@ namespace('kivi.io', function(ns) { if (price_str) $('#sellprice_' + row).val(price_str); $('#update_button').click(); } + + ns.update_discount_source = function(row, source, discount_str) { + $('#active_discount_source_' + row).val(source); + if (discount_str) $('#discount_' + row).val(discount_str); + $('#update_button').click(); + } });