X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fded0cc6dab294c2d3cf60011758f1af3d7b4357..cf182806b0fadd7468ecbd568f9b40236bc4aa35:/js/kivi.Part.js diff --git a/js/kivi.Part.js b/js/kivi.Part.js index 7680551b8..9fa071839 100644 --- a/js/kivi.Part.js +++ b/js/kivi.Part.js @@ -245,6 +245,7 @@ namespace('kivi.Part', function(ns) { var data = $('#makemodel_table :input').serializeArray(); data.push({ name: 'action', value: 'Part/add_makemodel_row' }); + $('#add_makemodel').data('customer_vendor_picker').clear(); $.post("controller.pl", data, kivi.eval_json_result); }; @@ -269,10 +270,11 @@ namespace('kivi.Part', function(ns) { }; ns.add_customerprice_row = function() { - if ($('#add_customerpriceid').val() === '') return; + if ($('#add_customerprice').val() === '') return; var data = $('#customerprice_table :input').serializeArray(); data.push({ name: 'action', value: 'Part/add_customerprice_row' }); + $('#add_customerprice').data('customer_vendor_picker').clear(); $.post("controller.pl", data, kivi.eval_json_result); }; @@ -494,6 +496,9 @@ namespace('kivi.Part', function(ns) { }, select: function(event, ui) { self.set_item(ui.item); + if (self.o.action.commit_one) { + self.run_action(self.o.action.commit_one); + } }, search: function(event, ui) { if ((event.which == KEY.SHIFT) || (event.which == KEY.CTRL) || (event.which == KEY.ALT))