shawnchin / jquery-gentleSelect

Implements skinnable select boxes which provides option to display selection in multiple columns/rows
http://shawnchin.github.io/jquery-gentleSelect
MIT License
39 stars 22 forks source link

Added support for multiple selections #2

Closed timmathews closed 13 years ago

timmathews commented 13 years ago

Hi Shawn,

Submitted for your review is my modification for multiple selection support. As long as the multiple attribute exists on the select tag, the code will do the right thing. I've also added two new config options. A prompt option which defines what is displayed to the user when no options are selected when using multiple and a maxDisplay option which defines how many of the selected options are shown in the label when the select box is closed. The default for maxDisplay is 4, which generally seems to work well.

As an aside, jquery-cron seems to work without modification with this new implementation and will generate more complex cron entries like * 1,2,3,4 * * *.

~Tim

shawnchin commented 13 years ago

Hi Tim,

Thanks for the updates. I'm currently away and won't be back for another 2 weeks, but I'll definitely review the changes and merge it when I get back. Apologies for the delay.

Regards, Shawn

shawnchin commented 13 years ago

Changes have been merged. Many thanks.