X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/78282bbdb5aa14ae9ad830a5b6cca75f90fb4451..2de6b9633d8b9d2cec532920ecd7dfb3a2d76df7:/js/kivi.Part.js diff --git a/js/kivi.Part.js b/js/kivi.Part.js index 9fa071839..0b0185bf3 100644 --- a/js/kivi.Part.js +++ b/js/kivi.Part.js @@ -335,13 +335,18 @@ namespace('kivi.Part', function(ns) { ajax_data: function(term) { var data = { 'filter.all:substr:multi::ilike': term, - 'filter.obsolete': 0, current: this.$real.val(), }; if (this.o.part_type) data['filter.part_type'] = this.o.part_type.split(','); + if (this.o.status) { + if (this.o.status == 'active') data['filter.obsolete'] = 0; + if (this.o.status == 'obsolete') data['filter.obsolete'] = 1; + } else + data['filter.obsolete'] = 0; + if (this.o.classification_id) data['filter.classification_id'] = this.o.classification_id.split(',');