X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/46e1177c8b8a14cfef2765e1f7b784116bddfc17..00ad7b5631ca2557bd02a592b4598699e47edbbd:/js/autocomplete_part.js diff --git a/js/autocomplete_part.js b/js/autocomplete_part.js index 62c1bf4bf..d0984eb01 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -16,8 +16,7 @@ namespace('kivi', function(k){ var o = $.extend({ limit: 20, delay: 50, - fat_set_item: 0, // use this option to get a fat item json with all - // relevant data instead of the guaranteed id + name + fat_set_item: $real.hasClass('partpicker_fat_set_item'), }, options); var STATES = { UNIQUE: 1, @@ -53,7 +52,7 @@ namespace('kivi', function(k){ function ajax_data(term) { var data = { - 'filter.all:substr::ilike': term, + 'filter.all:substr:multi::ilike': term, 'filter.obsolete': 0, 'filter.unit_obj.convertible_to': $convertible_unit && $convertible_unit.val() ? $convertible_unit.val() : '', no_paginate: $('#no_paginate').prop('checked') ? 1 : 0,