effective_addresses 1.3.5 → 1.3.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65ef19c6a9cb948f929f378bd12b89e28a8ed51a
|
4
|
+
data.tar.gz: 8aa716b6b6755097de2080ad6362b206a33dc852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78995273b6481d351cab006d27f7788c5eec84cf35791b44166c54522299d5f3a64c17a94e5060be13a8432bbd9204322e7547f5c2eb9da72bae68e4d66b23c8
|
7
|
+
data.tar.gz: 58d7045228e90be82de752777db4a91fd892e4c7eea0184837b8d2a6222cf37a81c2faf5c11160e5c93a82ebeef002414f399f46ada0149706b027e241b675f6
|
@@ -20,15 +20,15 @@ loadSubregions = ($countrySelect, clearPostalCode = false) ->
|
|
20
20
|
$stateSelect.prop('disabled', true).addClass('disabled').parent('.form-group').addClass('disabled')
|
21
21
|
$stateSelect.html('<option value="">Please choose a country first</option>')
|
22
22
|
else
|
23
|
-
$stateSelect.
|
23
|
+
$stateSelect.removeAttr('disabled').removeClass('disabled').parent('.form-group').removeClass('disabled')
|
24
24
|
$stateSelect.find('option').first().text('loading...')
|
25
25
|
$stateSelect.load url, ->
|
26
26
|
stateSelectAvailable = $(@).find('option:last').val().length > 0
|
27
27
|
if stateSelectAvailable
|
28
28
|
$(@).prop('required', true)
|
29
|
-
$(@).
|
29
|
+
$(@).removeAttr('disabled')
|
30
30
|
else
|
31
|
-
$(@).
|
31
|
+
$(@).removeAttr('required')
|
32
32
|
$(@).prop('disabled', true)
|
33
33
|
|
34
34
|
$(document).on 'change', 'select[data-effective-address-country]', -> loadSubregions($(@), true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_addresses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|