mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
dc5e36ec5c
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. |
||
---|---|---|
.. | ||
chosen | ||
coffee | ||
.piston.yml | ||
Cakefile | ||
example.jquery.html | ||
example.proto.html | ||
LICENSE.md | ||
package.json | ||
README.md | ||
VERSION |
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.
- Make all changes in Coffeescript files, not JavaScript files.
- For feature changes, update both jQuery and Prototype versions
- Use
npm install -d
to install the correct development dependencies. - Use
cake build
orcake watch
to generate Chosen's JavaScript file and minified version. - Don't touch the
VERSION
file - 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
- Built by Harvest. Want to work on projects like this? We’re hiring!
- Concept and development by Patrick Filler
- Design and CSS by Matthew Lettini
Notable Forks
- Chosen for MooTools, by Jules Janssen
- Chosen Drupal 7 Module, by Pol Dell'Aiera, Arshad Chummun, Bart Feenstra, Kálmán Hosszu, etc.
- Chosen CakePHP Plugin, by Paul Redmond