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 +4 -4
- data/app/assets/javascripts/cs-rails/countries.coffee.erb +4 -2
- data/lib/cs-rails/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: 0db3a424ccb5afef3980ed6abdd7d442be81bb3c
|
4
|
+
data.tar.gz: c7f51bfc43469b9583f8b232e9b08125017659d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/cs-rails/version.rb
CHANGED