Commit f504044c authored by David Stutz's avatar David Stutz

Merge pull request #72 from luisrudge/ie-filter-fix

Fixes ie filtering bug.
parents 237010cd 27b8e7a9
......@@ -439,11 +439,14 @@
getFilteredOptions: function () {
if (this.query == '') return this.originalOptions;
var query = this.query;
return $(this.originalOptions).filter(function () {
return this.text.substring(0, query.length) == query
});
},
var options = [];
$.each(this.originalOptions, function(index, option) {
if (option.text.substring(0, query.length) == query) options.push(option);
});
return options;
},
updateOriginalOptions: function() {
this.originalOptions = this.$select.clone()[0].options;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment