quicksearch icon indicating copy to clipboard operation
quicksearch copied to clipboard

Support for multiple selectors?

Open patcon opened this issue 15 years ago • 2 comments

Any chance of adding the ability to search for multiple selectors. I'm trying to make this into an exposed filter for the Drupal Views module, and adding a common class to each cell isn't the most elegant solution. Is it utterly out of scope to allow an array?

Anyhow, great great great plugin by the way! Thanks very much!

patcon avatar Nov 17 '10 22:11 patcon

The following change could be inserted to fix this without breaking backwards compatibility:

if (typeof options.selector != 'array') {
    options.selector = [options.selector];
}

Inserted around line 35, plus using an apply() call would make this possible.

shadowhand avatar Dec 17 '10 08:12 shadowhand

Thanks shadowland. I'll give it a go when I put this into a future project!

patcon avatar Dec 17 '10 15:12 patcon