FEATURE: User admin - filter groups as you type (#4171)
* FEATURE: User admin - filter groups as you type * Fix use of undefined parameter
This commit is contained in:
parent
4419d50780
commit
5cd0ce0019
|
@ -6,7 +6,11 @@ export default Ember.Component.extend({
|
|||
multiple: true,
|
||||
width: '100%',
|
||||
query: function(opts) {
|
||||
opts.callback({ results: this.get("available").map(this._format) });
|
||||
opts.callback({
|
||||
results: this.get("available").filter(function(o) {
|
||||
return -1 !== o.name.toLowerCase().indexOf(opts.term.toLowerCase());
|
||||
}).map(this._format)
|
||||
});
|
||||
}.bind(this)
|
||||
}).on("change", function(evt) {
|
||||
if (evt.added){
|
||||
|
|
Loading…
Reference in New Issue