volt-chosen 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1298d648113203882e40c1d6a710305a55243c0a
4
- data.tar.gz: 2820b61e8c06d4de6e419a4bcbb3f5234f9f0d3b
3
+ metadata.gz: 488fcf2c470d85c095f0f62bb3dec381be2a5d64
4
+ data.tar.gz: a5d79a8a11b74e84e159449ea42752114dbfdf5c
5
5
  SHA512:
6
- metadata.gz: 084d99288f8ccc5454c7c84be4c234ab7272089afa562271be337748ec97e25aaee0de6426a070ed65d393fdd45d9d088e15c773be3002d5f436acf19e971860
7
- data.tar.gz: e7ed53400141eafe9d90d24e93b580e66c49581d39f3632037d88ce7b9f3803e9304b4d5979f2d2e28d1eeae9929796fa9437332d7960b46924ffe68e97be67d
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-change``` if you want to do something with the change event.
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 <optgroup>s
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);
@@ -1,5 +1,5 @@
1
1
  module Volt
2
2
  module Chosen
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-chosen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale