make the option element available to the matcher function when attached to select. can be used to match on option attributes as well as option text. fixes #227
This commit is contained in:
parent
7fd94ce623
commit
3a830a2b81
@ -622,7 +622,7 @@
|
||||
process=function(element, collection) {
|
||||
var group;
|
||||
if (element.is("option")) {
|
||||
if (query.matcher(term, element.text())) {
|
||||
if (query.matcher(term, element.text(), element)) {
|
||||
collection.push({id:element.attr("value"), text:element.text(), element: element.get()});
|
||||
}
|
||||
} else if (element.is("optgroup")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user