volt-chosen 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/chosen/controllers/main_controller.rb +0 -2
- data/lib/volt/chosen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 488fcf2c470d85c095f0f62bb3dec381be2a5d64
|
4
|
+
data.tar.gz: a5d79a8a11b74e84e159449ea42752114dbfdf5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03602c3e58d476ce50e390fbac1a13ab10bed81168361a5bfe762cd75a6a96b445660c59dc0106b45d0f9acab39390136d72c5a5849a950aa171e11bf725b36a
|
7
|
+
data.tar.gz: 7502c53ced5a29a0041637b5da303d65a6e39fc0066f858563021b4bc9deeadaf8e3f1dd2c7ca001acfd8e564eab050fa658517783fb92f2bdaa451567e480da
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ be passed through the chosen_options attribute as shown above.
|
|
28
28
|
|
29
29
|
### Events
|
30
30
|
*important*
|
31
|
-
The ```change``` event that Chosen fires on select was throwing an error in Volt 0.9.6 when it caught somewhere higher up the stack. I didn't have time to fully chase it down, so instead this gem currently catches ```change``` and raises ```chosen:change```. Thus, you must use ```chosen
|
31
|
+
The ```change``` event that Chosen fires on select was throwing an error in Volt 0.9.6 when it caught somewhere higher up the stack. I didn't have time to fully chase it down, so instead this gem currently catches ```change``` and raises ```chosen:change```. Thus, you must use ```chosen:change``` if you want to do something with the change event.
|
32
32
|
|
33
33
|
## Credit
|
34
34
|
Thanks to all the folks who contribute to [Chosen](https://github.com/harvesthq/chosen), it's amazing!
|
@@ -44,4 +44,4 @@ Thanks to all the folks who contribute to [Chosen](https://github.com/harvesthq/
|
|
44
44
|
## List of needs:
|
45
45
|
1. Some integration tests for multiple selects
|
46
46
|
2. Test and tweak to make sure single selects work
|
47
|
-
3. Would be nice to add support for
|
47
|
+
3. Would be nice to add support for ```optgroup```s
|
@@ -30,10 +30,8 @@ module Chosen
|
|
30
30
|
# to a framework conflict that was throwing an error.
|
31
31
|
# See related issue:
|
32
32
|
def index_ready
|
33
|
-
`console.log($(#{selector}));`
|
34
33
|
options = attrs.chosen_options || {}
|
35
34
|
options[:width] ||= "100%"
|
36
|
-
`console.log(#{options.to_n});`
|
37
35
|
`$(#{selector}).chosen(#{options.to_n}).change(function(e, params) {
|
38
36
|
e.stopPropagation();
|
39
37
|
$(".my_select_box").trigger('chosen:change', params);
|
data/lib/volt/chosen/version.rb
CHANGED