Commit Graph

70 Commits (2f196b118c5cfc01234b6608232b66c4508f5130)

Author SHA1 Message Date
Patrick Filler 2f196b118c Make group selection optional. 2012-02-28 10:52:03 -05:00
Patrick Filler d3eb80470c Clicking groups chooses all members of a group. 2012-02-27 17:19:06 -05:00
Patrick Filler 3cae992311 Add optgroup searching 2012-02-24 15:09:12 -05:00
Patrick Filler 5175cb809e Updating version numbers. 2012-01-19 17:52:30 -06:00
Patrick Filler 3b3eca5249 Merge branch 'master' of https://github.com/digger69/chosen into digger69-master
Conflicts:
	chosen/chosen.jquery.js
	chosen/chosen.jquery.min.js
	chosen/chosen.proto.js
	chosen/chosen.proto.min.js
2012-01-12 17:10:05 -06:00
Patrick Filler c9294d5943 Merge branch 'master' of https://github.com/mikefrey/chosen into mikefrey-master 2012-01-12 16:33:42 -06:00
Patrick Filler 0108f15866 Long overdue Version Update (0.0.6)
- Abstracted code for shared portions between Prototype/jQuery
- Trigger and event when Chosen is ready ("liszt:ready")
- Better performance for very large lists
2012-01-12 14:31:07 -06:00
Mark Nadig e400dc7a3a refs #404 - rebuilt js separately from change to .coffee for #403 - since many diffs in generated js. Want to see if harvest wants this. 2011-12-16 14:47:55 -07:00
Mike Frey 5911d684f9 fixed esc keyup event propagation 2011-12-12 11:18:47 -06:00
Patrick Filler 31cd33f22b Change display property of groups to list-item when results match. Fixes #344 & Fixes #354. 2011-11-15 11:19:03 -05:00
Patrick Filler 16b6f5047a Use coffeescript existential operator and commit js changes. 2011-11-15 11:01:40 -05:00
Patrick Filler f87575cb75 Remove some old debugging code. 2011-11-04 15:51:16 -04:00
Patrick Filler f0a349d782 Remove condition made unnecessary by poorly written CoffeeScript. The text of an option was never matching this function, so why leave it there? 2011-11-04 15:48:50 -04:00
François Bernier 17c1e8e18e Fixed disable_search_threshold being ignored when triggering a liszt:updated event 2011-11-01 19:52:19 -04:00
Patrick Filler 0f89ebef85 Merge branch 'sd-ready-event' of https://github.com/sd/chosen into sd-sd-ready-event
Conflicts:
	chosen/chosen.jquery.min.js
	chosen/chosen.proto.min.js
	coffee/chosen.proto.coffee
2011-10-24 13:36:14 -04:00
Patrick Filler c772be4cc1 Merge branch 'tab-select' of https://github.com/greatbigsolutions/chosen into greatbigsolutions-tab-select
Conflicts:
	chosen/chosen.jquery.min.js
	chosen/chosen.proto.min.js
2011-10-24 12:21:20 -04:00
Patrick Filler fa35528d15 Make sure we have only one deselect control at a time.
Fixes #286 and #296
2011-10-17 12:30:54 -04:00
Matthew Beale 47b7b4d6bc Merge master into abstract-chosen 2011-09-30 17:39:03 -04:00
Patrick Filler 1e49c19d20 Up version number to 0.9.5
- Allow disabling of Search on single select boxes with <= N options (#45).
- Retain original option styles
- Retain original option classes (#30)
- Fix show results bug when clicking close icon (#277)
2011-09-30 12:21:05 -04:00
Patrick Filler 1e9b4ddbe9 Single selects now allow disabled search below a certain option threshold. 2011-09-30 12:14:02 -04:00
Patrick Filler d87310ee5d Keep select option's original style, too. 2011-09-29 18:19:21 -04:00
Patrick Filler 7dd29088e8 Apply original option classes to Chosen's search results. 2011-09-29 17:32:58 -04:00
Patrick Filler cde5fc8e69 Don't show/hide results when deselecting option in single Chosen. 2011-09-29 16:48:12 -04:00
Patrick Filler 785020b189 Update chosen to 0.9.4
- Speed improvements
- Allow deselect on single select
- Support for disabled form field
- Make sure only active results get highlighted
2011-09-29 15:56:45 -04:00
Patrick Filler d4c7005b5c Using class-based show/hide instead of the jquery/prototype methods results in significant speed improvements for very, very large select boxes. (at least in modern web browsers) 2011-09-29 15:39:45 -04:00
Patrick Filler 953d3baa4f Fire the change event when deselecting a value. 2011-09-28 13:40:18 -04:00
Patrick Filler b7a9b218fb Insert deselect UI on initial load if a value is selected. 2011-09-28 13:30:39 -04:00
Patrick Filler eb2636838e When using allow_single_deselect, first element must have blank text. 2011-09-28 11:46:36 -04:00
Patrick Filler 5a783bbb96 Test for presence of event before using its target! 2011-09-28 11:31:10 -04:00
Patrick Filler 81c084ec99 If deselecting when Chosen is open, close it up. 2011-09-27 16:57:51 -04:00
Patrick Filler 3b11f2e2d1 Create option to allow deselect on Chosen single selects. 2011-09-27 16:51:29 -04:00
Patrick Filler df394886e4 On single selects, remove the result-selected class from any previously selected options when selecting an option 2011-09-26 17:48:31 -04:00
Patrick Filler 85c436086f Make sure chosen doesn't stay "active" after form field becomes disabled. 2011-09-23 10:08:22 -05:00
Patrick Filler 6c6f3590bc If field is disabled, stop destroy choice clicks as well. 2011-09-23 09:46:01 -05:00
Patrick Filler 41831bb934 Fix sloppy spacing when applying chzn-rtl 2011-09-22 13:02:25 -05:00
Patrick Filler f1e1c559ea Add support for disabled form fields. 2011-09-22 12:44:00 -05:00
Adam Ford 208370bd0d Hitting Tab selects current highlighted option
While navigating through native selects using the keyboard, one can start
typing the text of the desired option to select it, then hit the Tab key
to move to the next element with the desired option remaining selected.
This doesn't work with Chosen currently (the correct option is highlighted,
but it is not selected once the Tab key is hit.)

Now the current highlighted option in a non-multiple Chosen select is
selected when the Tab key is hit.

Resolves #104.
2011-09-20 10:56:04 -06:00
Patrick Filler 91734e94ee Complied JS differs between coffescript versions. 2011-09-19 15:13:34 -05:00
Patrick Filler 6571967085 Merge branch 'highlight_active' of https://github.com/Nagyman/chosen into Nagyman-highlight_active
Conflicts:
	chosen/chosen.jquery.min.js
	chosen/chosen.proto.min.js
2011-09-19 15:10:09 -05:00
Nagyman 93dbe8efec Highlight the selected result only if it's active (matches the current search) 2011-09-17 07:56:53 -04:00
Nagyman 8922e6e854 Use @ shortcut for constructor arguments 2011-09-17 05:14:15 -04:00
Patrick Filler ada808db43 Make options default use the coffeescript way™ 2011-09-12 18:34:13 -04:00
Patrick Filler d9ae47eda4 Update version number to 0.9.3
- Calculate initial width based on OuterWidth, not Width (jQuery version)
- Options array implemented for jQuery / Prototype version
- Added 'no_results_text' option to override default "No Matches" text
- prototype version not created on initial load to more closely resemble jQuery version
2011-09-12 17:56:54 -04:00
Patrick Filler a7a8ad54e2 Make the prototype version more like the jQuery version (doesn't sniff for a class any longer) 2011-09-12 17:48:38 -04:00
Patrick Filler 800e3d5502 Add options object for both prototype and jquery version. 2011-09-12 17:31:10 -04:00
Patrick Filler eb8ee7366d Update version number in JS files, too 2011-09-12 16:02:39 -04:00
Matthew Beale 4e463669d2 Introduce abstract-chosen, try to start sharing more code between platforms 2011-08-19 12:23:03 -04:00
Patrick Filler 1d6df98c4e Fix merge conflicts caused by min version 2011-08-16 15:12:10 -04:00
Patrick Filler 57fcc576c3 Merge changes from #149 2011-08-16 14:52:18 -04:00
Patrick Filler 528d77bc04 No ctrl/command click when for single selects. 2011-08-08 11:37:56 -04:00