X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d9ff130dc4087394f2fcbe04d0ea99fc31643a3c..728a02eb7cda5d7bda03105d6a68b8eb126928f0:/js/kivi.SalesPurchase.js?ds=inline diff --git a/js/kivi.SalesPurchase.js b/js/kivi.SalesPurchase.js index 8d54864cb..3a623ebbd 100644 --- a/js/kivi.SalesPurchase.js +++ b/js/kivi.SalesPurchase.js @@ -170,8 +170,9 @@ namespace('kivi.SalesPurchase', function(ns) { $('#shiptoname').focus(); }; - this.submit_custom_shipto = function() { - $('#shipto_id').val(''); + this.submit_custom_shipto = function(id_selector) { + id_selector = id_selector || '#shipto_id'; + $(id_selector).val(''); $('#shipto_dialog').data('confirmed', true); $('#shipto_dialog').dialog('close'); };