silverstripe-framework/admin/thirdparty/chosen
Naomi Guyer dc5e36ec5c BUGFIX: 7117 Fixes
Includes:
* Changes to chosen to include a custom function that will let the
drop-down rise-up if there is room and it would otherwise drop beneath
the size of the window (changes in coffeescript, jquery output, and
chosen css)
* Changes in SCSS to stop the automatic addition of scrollbars, and
to limit the extra space at the bottom of the filter div

Issues remaining:
* jLayout is calculating the height of the filter div incorrectly.
It is assuming the div is around 70px longer than it is. This height
assumption is linked somehow to chosen, as initiating the select box
results in a correct height calculation.
2012-05-01 17:14:16 +12:00
..
chosen BUGFIX: 7117 Fixes 2012-05-01 17:14:16 +12:00
coffee BUGFIX: 7117 Fixes 2012-05-01 17:14:16 +12:00
.piston.yml MINOR Updated chosen.js from 0.9.7 to 0.9.8 while still maintaining local fixes 2012-03-27 17:02:19 +02:00
Cakefile MINOR: Fix chosen Coffeescript files 2012-04-26 12:04:40 +12:00
example.jquery.html MINOR Updated chosen.js to 0.9.5 2012-01-03 12:08:29 +01:00
example.proto.html MINOR Updated chosen.js from 0.9.7 to 0.9.8 while still maintaining local fixes 2012-03-27 17:02:19 +02:00
LICENSE.md MINOR: imported chosen master via piston 2011-08-05 16:11:15 +12:00
package.json MINOR Updated chosen.js from 0.9.7 to 0.9.8 while still maintaining local fixes 2012-03-27 17:02:19 +02:00
README.md MINOR Updated chosen.js from 0.9.5 to 0.9.7 2012-03-05 17:41:49 +01:00
VERSION MINOR Updated chosen.js from 0.9.7 to 0.9.8 while still maintaining local fixes 2012-03-27 17:02:19 +02:00

Chosen

Chosen is a library for making long, unwieldy select boxes more user friendly.

  • jQuery support: 1.4+
  • Prototype support: 1.7+

For documentation, usage, and examples, see:
http://harvesthq.github.com/chosen

Contributing to Chosen

Contributions and pull requests are very welcome. Please follow these guidelines when submitting new code.

  1. Make all changes in Coffeescript files, not JavaScript files.
  2. For feature changes, update both jQuery and Prototype versions
  3. Use npm install -d to install the correct development dependencies.
  4. Use cake build or cake watch to generate Chosen's JavaScript file and minified version.
  5. Don't touch the VERSION file
  6. Submit a Pull Request using GitHub.

Using CoffeeScript & Cake

First, make sure you have the proper CoffeeScript / Cake set-up in place. We have added a package.json that makes this easy:

npm install -d

This will install coffee-script and uglifyjs.

Once you're configured, building the JavasScript from the command line is easy:

cake build                # build Chosen from source
cake watch                # watch coffee/ for changes and build Chosen

If you're interested, you can find the recipes in Cakefile.

Chosen Credits

Notable Forks