hello,
the search seems to work with "Start with" and not with "Contains" ...
is it possible to change this somewhere?
thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | chosen-adding_search_contains_option-1539444_2_nodev.patch | 2.03 KB | filsterjisah |
| #11 | demo.png | 11.19 KB | dynamicdan |
| #11 | demo2.png | 16.4 KB | dynamicdan |
| #2 | chosen-adding_search_contains_option-1539444.patch | 2.18 KB | Cyclodex |
Comments
Comment #1
Cyclodex commentedI also need this for my project, so this is a simple option you can pass to chosen.
.chosen({search_contains: true})(Somehow this is not documented as I see)
But there is a closed issue:
https://github.com/harvesthq/chosen/issues/288
I could make a patch soon, to give this feature as an option in the chosen settings.
[Beep] Cyclodex
Comment #2
Cyclodex commentedAdding a patch which enables the possibility to set an option in the chosen settings, to search also in the middle of words.
Apply this patch against the current dev version.
Not sure how to process here, because this module/maintainer seems to be not that active anymore.
Would like to see such improvements and others in a new version.
Comment #3
sachbearbeiter commentedthanks a lot - i will test ...
Comment #4
Cyclodex commentedany feedback? :)
Comment #5
shadcn commentedTesting this...
Comment #6
dynamicdan commentedThis patch would bring us one step closer to using this field for hierarchical taxonomy selection.
The next step would be to show the parents in brackets next to the results.. eg:
(regions taxonomy)
-Melbourne (USA/Florida)
-Melbourne (Australia/Victoria)
BTW, Anyone know how to kick a maintainer back into life?
Comment #7
shadcn commentedI committed this to the dev branch. @cyclodex, can you run some tests? http://drupal.org/node/1223156/commits
Comment #8
dynamicdan commentedI checked out that source.. seems to work fine.
Not sure if the first item in the list should show the text for which the search matches though..
Eg,
search: dev
Expected results:
1 Got some1todev (not viewable/obvious)
2 Eat my Cooldev (works)
Probably simply due to the fact that the first item is always selected/highlighted by default meaning one won't see the matched text in the first result.
Comment #9
Cyclodex commentedSorry quite busy over here ;)
Will test your commits soon, thanks!
Comment #10
Cyclodex commented@dynamicdan
What do you mean exactly ?
Comment #11
dynamicdan commentedAttached demos. The 2nd is more obvious. I type 'ice' but I don't know where in the first result it matches with 'ice'.
Comment #12
Cyclodex commentedAh you mean because it is already selected (blue background).
Looks like this is the basic behavior of this plugin. So I guess it would be nice if you create an issue over there, on their github.
Not sure if we should try to fix this, because as I said, this comes with the plugin we use.
Comment #13
dynamicdan commenteddone.
https://github.com/harvesthq/chosen/issues/727
Comment #14
Cyclodex commentedthanks @ dynamicdan
Ok, it looks like we can close this issue, because this is now implemented and works.
The other issues are related to chosen library or should get new dedicated issue:
@ dynamicdan, can you do this, thanks :)
Comment #15
dynamicdan commented@Cyclodex, already done:
http://drupal.org/node/1614264
Comment #16
Cyclodex commentedGreat! Sorry, I am just cleaning up this issue list ;) There are a lot of them, but I want to track this down in the next days/weeks :)
Comment #18
filsterjisah commented+1
Comment #19
filsterjisah commentedAdded patch based on #2 for 7.x-1.0 version (not dev release) for those who need it.