Shrink js file by utilizing jQuery
mikeytown2 - February 1, 2009 - 09:22
| Project: | Droplist Filter |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | jchan |
| Status: | active |
Jump to:
Description
Here are some starting points
http://www.texotela.co.uk/code/jquery/select/
http://vision-media.ca/resources/jquery/jquery-inline-search-plugin
It would be great if this could do a contains search as well.

#1
Yes I have been meaning to do a re-write using jQuery. It will be done, but no promises on how soon that will be.
#2
I have re-written it as a jQuery plugin, and it did shrink the .js file size by 1/3. The functionality is the same as before, and the Drupal interface remains mostly unchanged. It's in 6.x-1.4-beta1.
Actually, now as I read your note again, I am not sure what you mean by "contains search". Sorry, I should have asked earlier. If you meant searching the list for partial matches (i.e. "pup" matches "puppet", "puppy", "pup"), then it already does that.
#3
By partial search, I mean if the title is "puppy dog" it would return that node when you do a search for "dog" or even "ppy"