Commit graph

60 commits

Author SHA1 Message Date
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
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 718f500c9a Merge branch 'master' of https://github.com/h3adache/chosen into h3adache-master
Conflicts:
	chosen/chosen.jquery.js
	chosen/chosen.jquery.min.js
	coffee/chosen.jquery.coffee
	example.jquery.html
2011-09-12 17:21:49 -04:00
Patrick Filler eb8ee7366d Update version number in JS files, too 2011-09-12 16:02:39 -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
Patrick Filler d6137ad5be Merge branch 'master' of https://github.com/cleercode/chosen into cleercode-master 2011-08-08 11:16:12 -04:00
Allen Bargi 8b223ec328 closes #139 and #140 2011-08-03 07:32:14 +02:00
Tim Chen 90ca300921 remove unused data constructor variable, make use of options 2011-08-02 15:16:14 -05:00
Patrick Filler 0812bc3d64 Highlight selected option in a single select on initial load.
Closes Gh-103
2011-08-01 16:14:13 -04:00
Allen Bargi 84452143ff added autocomplete='off' to input fields. closes #127 2011-08-01 19:42:36 +02:00
Patrick Filler 387177aec3 Update title / copyright details. 2011-07-31 13:24:28 -04:00
Patrick Filler 75b7546420 Move the location of select parser and update the build file. Move it below the Chosen JS in output. 2011-07-31 13:14:54 -04:00
Patrick Filler a8ae212634 Merge branch 'master' into build_system 2011-07-31 12:28:08 -04:00
Patrick Filler e10951b7a4 Fix issue caused by select IDs containing colons. 2011-07-31 12:08:34 -04:00
Allen Bargi bd5daff469 rtl support for prototype based chosen 2011-07-31 13:12:29 +02:00
Matthew Beale b793dd3a61 Use root for globals, not this 2011-07-29 10:49:25 +02:00
Matthew Beale 6f0f0bd4c3 Use npm modules for the build chain so we can concat multiple files for dependencies. Break SelectParser into it's own file. Commit updates to the actual Javascripts to reflect the new builds. 2011-07-29 10:42:34 +02:00
Allen Bargi 2a8bd04b93 using data-placeholder instead of title attribute 2011-07-28 22:33:24 +02:00
Matthew Beale 2013c524ca Should have been escape, no unescape 2011-07-27 12:11:24 -04:00
Matthew Beale b23391b66d Search using escaped html, show that when no results are found 2011-07-27 12:09:41 -04:00
Matthew Beale 6f1d74de8a Use innerhtml instead of text for definitive text 2011-07-27 10:42:03 -04:00
pfiller d399196f52 Fix issue with dotted ids.
Closes Gh-54
2011-07-26 15:10:16 -04:00
pfiller 49c7d2e0f6 Replace a reference to @container.id with @container_id 2011-07-26 14:27:44 -04:00
pfiller 2e7348d412 Prototype version no longer requires ID 2011-07-26 14:22:51 -04:00
Chris Lee 110466a38f Ctrl/command-click to select without closing list. Related to #23 2011-07-22 17:27:08 -07:00
Allen Bargi b1a0c7857f replaced href='#' with href='javascript:void(0)' which does not cause a jump on click 2011-07-21 16:55:39 +02:00
Patrick Filler db9fd24889 In standard dropdowns, you can hit Escape (on your keyboard) to cancel form entry and close the dropdown.
Gh-16
2011-07-20 12:38:34 -04:00
Patrick Filler e9e4b488cd Scale search field after building results. 2011-07-19 17:33:46 -04:00
Patrick Filler 5a1232532d Fix test for disabled elements. 2011-07-19 17:01:41 -04:00
Patrick Filler f5967bd265 Update to use latest version of Select Parser (https://github.com/pfiller/Select-Parser). This fixes issues with group positioning. 2011-07-19 15:46:40 -04:00
Patrick Filler ed9e82a816 Yes! A second click on the dropdown arrow _should_ collapse the dropdown box.
Closes gh-1
2011-07-18 18:47:40 -04:00
Patrick Filler 15a5366aad Fix some issues with parsing blank options. 2011-07-15 18:04:37 -04:00
Patrick Filler 7778ef0cb2 Update License Info 2011-07-13 15:42:57 -04:00
Patrick Filler d16cf5f3da Clear highlight on backspace. 2011-07-13 12:11:44 -04:00
Patrick Filler a723721b65 Fix focus issues caused by bad indenting. 2011-07-08 16:52:18 -04:00
Patrick Filler fecd7e24a5 Re-factor Chosen into Coffescript 2011-07-08 16:30:32 -04:00