function ajax_data(term) {
return {
- 'filter.all:substr::ilike': term,
- 'filter.type': function() { return $type.val() },
+ 'filter.all:substr::ilike': term,
+ // due to a bug in $.param functions returning arrays don't get serialized correctly, so call it manually
+ 'filter.type': $type.val().split(','),
'filter.obsolete': 0,
- column: function() { return $column.val()===undefined ? '' : $column.val() },
- current: function() { return $real.val() },
+ column: $column.val()===undefined ? '' : $column.val(),
+ current: $real.val(),
}
}
[% L.part_picker('part_id2', undef, type='part') %]<br>
Nur Dienstleistungen: <br>
[% L.part_picker('part_id3', undef, type='service') %]<br>
+Waren und Dienstleistungen: <br>
+[% L.part_picker('part_id4', undef, type='part,service') %]<br>