cs-rails 0.0.2 → 0.0.3

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: 74553dd3b1904ff0e3b2fd52e42fe7499029869c
4
- data.tar.gz: aba7bcf8f4f56fb860f7fe694ac8dacba19de7f5
3
+ metadata.gz: 0db3a424ccb5afef3980ed6abdd7d442be81bb3c
4
+ data.tar.gz: c7f51bfc43469b9583f8b232e9b08125017659d4
5
5
  SHA512:
6
- metadata.gz: 71a8d9df018f13a2808923cddbd3dc88aebf052b66d520dee737b0dff785162f2745743d8b4a2dc13ad24526243dac8e39ff9c13870bb9e920617fe8e340c0b3
7
- data.tar.gz: d414799120eca1d10512d148749ef010c66f2c46a6512c1ee9a119df3fbb6986e22694d00e676592942a56ec85bd3e8a7f0d9601eac332fb61f5f607c3b20863
6
+ metadata.gz: f2731b6d70c24acb6f6cb0c62151e94201687151e23a3e0b1120a7126f861daf3a981aa98ef18bf7c61086ee2e6c4e49615a1ca6c36aa0d7a6a378b53495dc35
7
+ data.tar.gz: b49459768cd74eadc6ec8c80093013c6edba1428d39f59f218625ea7d4f1dd001d6cab9c7fffc75882c2b84dfcf194734404c0959253119e41a2f1f98c8037d9
@@ -1,7 +1,9 @@
1
1
  $(document).on 'page:change', ->
2
- $('select[data-cs-rails]').change (event) ->
2
+ $('select[data-cs-rails]').change (event, callback) ->
3
3
  $.get "<%= CsRails::Engine.routes.url_helpers.states_index_path %>",
4
4
  {
5
5
  country_code: $(@).val()
6
6
  state_input_id: $(@).data('state-input-id')
7
- }, null, 'script'
7
+ }, null, 'script'
8
+ .done ->
9
+ callback() if callback
@@ -1,3 +1,3 @@
1
1
  module CsRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kadu Diógenes