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
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

jchan - February 2, 2009 - 00:11
Assigned to:Anonymous» jchan

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

jchan - February 16, 2009 - 07:56

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

mikeytown2 - February 17, 2009 - 00:33

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"

 
 

Drupal is a registered trademark of Dries Buytaert.