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: 2d0c4361e8830a2fb6bb359f7d34d74f6eb44e56
4
- data.tar.gz: 61c3558e17e2bfee0d994b319a23bfd7ab7dc3af
3
+ metadata.gz: 65ef19c6a9cb948f929f378bd12b89e28a8ed51a
4
+ data.tar.gz: 8aa716b6b6755097de2080ad6362b206a33dc852
5
5
  SHA512:
6
- metadata.gz: 2af70e912d4cb310996e0d5d98ef7eb2239153f594da4486a55ebcb25ad353e8f9e13eec59e05877efd27f5c3f6cb94d140bd1d6ca6a26561359dd22896ba892
7
- data.tar.gz: e61435314450ee49f758422a038b69ebb9aed78075cefc8d3b5dc4f1acb2429bf9c0490eaa05ac2a5a69a4771ac57680140ac5d05c8ec999efea633d8efb5b54
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.prop('disabled', false).removeClass('disabled').parent('.form-group').removeClass('disabled')
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
- $(@).prop('disabled', false)
29
+ $(@).removeAttr('disabled')
30
30
  else
31
- $(@).prop('required', false)
31
+ $(@).removeAttr('required')
32
32
  $(@).prop('disabled', true)
33
33
 
34
34
  $(document).on 'change', 'select[data-effective-address-country]', -> loadSubregions($(@), true)
@@ -1,3 +1,3 @@
1
1
  module EffectiveAddresses
2
- VERSION = '1.3.5'.freeze
2
+ VERSION = '1.3.6'.freeze
3
3
  end
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.5
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-10-22 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails