Skip to content
Permalink
Browse files

feature: chosen upgrade to version 1.8.7

  • Loading branch information...
fmancardi committed Aug 14, 2019
1 parent 328e166 commit 751a007d98becdaaedff226d929cef30b1ce2fc5
@@ -0,0 +1,23 @@
#### Chosen
- by Patrick Filler for [Harvest](http://getharvest.com)
- Copyright (c) 2011-2016 by Harvest

Available for use under the [MIT License](http://en.wikipedia.org/wiki/MIT_License)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@@ -0,0 +1,36 @@
{
"name": "harvesthq/chosen",
"description": "Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.",
"authors": [
{
"name": "Patrick Filler",
"homepage": "https://github.com/pfiller"
},
{
"name": "Christophe Coevoet",
"homepage": "https://github.com/stof"
},
{
"name": "Ken Earley",
"homepage": "https://github.com/kenearley"
},
{
"name": "Koen Punt",
"homepage": "https://github.com/koenpunt"
}
],
"keywords": [
"select",
"multiselect",
"dropdown",
"form",
"input",
"ui"
],
"type": "library",
"license": "MIT",
"minimum-stability": "stable",
"homepage": "https://harvesthq.github.io/chosen/",
"require": {
}
}
@@ -0,0 +1,11 @@
var config = {
'.chosen-select' : {},
'.chosen-select-deselect' : { allow_single_deselect: true },
'.chosen-select-no-single' : { disable_search_threshold: 10 },
'.chosen-select-no-results': { no_results_text: 'Oops, nothing found!' },
'.chosen-select-rtl' : { rtl: true },
'.chosen-select-width' : { width: '95%' }
}
for (var selector in config) {
$(selector).chosen(config[selector]);
}
@@ -0,0 +1,16 @@
document.observe('dom:loaded', function(evt) {
var config = {
'.chosen-select' : {},
'.chosen-select-deselect' : { allow_single_deselect: true },
'.chosen-select-no-single' : { disable_search_threshold: 10 },
'.chosen-select-no-results': { no_results_text: 'Oops, nothing found!' },
'.chosen-select-rtl' : { rtl: true },
'.chosen-select-width' : { width: '95%' }
}

for (var selector in config) {
$$(selector).each(function(element) {
new Chosen(element, config[selector]);
});
}
});

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 751a007

Please sign in to comment.
You can’t perform that action at this time.