]> wagnertech.de Git - mfinanz.git/blobdiff - js/autocomplete_part.js
$::request auch in dbupgrade2_tool initialisieren
[mfinanz.git] / js / autocomplete_part.js
index 62c1bf4bfd726a52f0258a54f21a7514fce03501..d0984eb01e3b7a2b40811efc9226fb015ee57bac 100644 (file)
@@ -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,