X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=js%2Fautocomplete_part.js;h=57f90c7a733438574bd2c4a8bdd1c96c50a24a65;hb=4438ac8995ba86eeef3f20fa246583eebf5bc3cd;hp=0366ed270c2018e0a73a75c30c065eec9fe99686;hpb=2cf7a2cd78d812d917fb4c92f8ee57f6a32f3685;p=kivitendo-erp.git diff --git a/js/autocomplete_part.js b/js/autocomplete_part.js index 0366ed270..57f90c7a7 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -28,9 +28,9 @@ namespace('kivi', function(k){ UNDEFINED: CLASSES.UNDEFINED } var real_id = $real.attr('id'); - var $dummy = $('#' + real_id + '_name'); - var $type = $('#' + real_id + '_type'); - var $unit = $('#' + real_id + '_unit'); + var $dummy = $('#' + real_id + '_name'); + var $part_type = $('#' + real_id + '_part_type'); + var $unit = $('#' + real_id + '_unit'); var $convertible_unit = $('#' + real_id + '_convertible_unit'); var state = STATES.PICKED; var last_real = $real.val(); @@ -63,8 +63,8 @@ namespace('kivi', function(k){ current: $real.val(), }; - if ($type && $type.val()) - data['filter.type'] = $type.val().split(','); + if ($part_type && $part_type.val()) + data['filter.part_type'] = $part_type.val().split(','); if ($unit && $unit.val()) data['filter.unit'] = $unit.val().split(','); @@ -237,16 +237,14 @@ namespace('kivi', function(k){ }); // now add a picker div after the original input - var pcont = $('').addClass('position-absolute'); - var picker = $('
'); - $dummy.after(pcont); - pcont.append(picker); - picker.addClass('icon16 search').click(open_dialog); + var popup_button = $('').addClass('ppp_popup_button'); + $dummy.after(popup_button); + popup_button.click(open_dialog); var pp = { real: function() { return $real }, dummy: function() { return $dummy }, - type: function() { return $type }, + part_type: function() { return $part_type }, unit: function() { return $unit }, convertible_unit: function() { return $convertible_unit }, update_results: update_results,