Part: Nach einfügen von Zeile den Partpicker clearen
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 10 Feb 2017 12:58:40 +0000 (13:58 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 13 Feb 2017 15:32:45 +0000 (16:32 +0100)
js/kivi.Part.js

index ff3ce98..e8fcd28 100644 (file)
@@ -162,6 +162,7 @@ namespace('kivi.Part', function(ns) {
     data.push({ name: 'action', value: 'Part/add_assortment_item' },
               { name: 'part.id', value: $('#part_id').val()       },
               { name: 'part.part_type', value: 'assortment'       });
+    $('#assortment_picker').data('part_picker').clear();
 
     $.post("controller.pl", data, kivi.eval_json_result);
   };
@@ -173,6 +174,7 @@ namespace('kivi.Part', function(ns) {
     data.push({ name: 'action', value: 'Part/add_assembly_item' },
               { name: 'part.id', value: $("#part_id").val()     },
               { name: 'part.part_type', value: 'assortment'     });
+    $('#assembly_picker').data('part_picker').clear();
 
     $.post("controller.pl", data, kivi.eval_json_result);
   };