ubigeo_rails 0.0.5 → 0.0.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: 412dd160307cad0a37b710e06acc1a66ebfc91d1
4
- data.tar.gz: bef0cdf54769f7438657c394f7e1a0a5c0bedc5c
3
+ metadata.gz: 173b7db2453025ac6ee9663cd76022db456e8e37
4
+ data.tar.gz: e6e7496ed5ebe16504f13a4517d54882761efc51
5
5
  SHA512:
6
- metadata.gz: ee59cdaf05b5305685ba71c0e18cbdef973f7a6ccf982f9be1dc986db931b41c92157e32b476490524c0db243a48f89868a27e1412d66f29c586853c8bf41da8
7
- data.tar.gz: 967140863c17f3def0342b62a9f5185a8b1404f3389f757c273335ad226322f70b19872b1f5b687d4e1ded5a5fbcab5fa8abb297ca0c0f7e23c068374d812a33
6
+ metadata.gz: 100f0b0065cd6f88bbf5eb98d295faa4bd58fb8a98e2670cd88be173ee137357e36bdad99abd496b42387f6071c842a18f685d086ff260b9e698e2ff4138c06f
7
+ data.tar.gz: 4150e589eefb2b5646c9a923011363e4829a3d31351c7513b0d0c32cf13572a91e4d71646ac6a4dddac4d612d5a6118be22e4d0b8daa69f8d6254b325d9c89d6
@@ -88,11 +88,14 @@ class UbigeoDependantManager
88
88
  ready = ->
89
89
  # should decorate the ubigeo_input class elements
90
90
  manager = new UbigeoDependantManager el: $('.ubigeo_input')
91
- # set the event listeners
92
- manager.startListeners()
93
- # load the departments
94
- manager.loadDepartments =>
95
- manager.cascadeLoad()
91
+
92
+ # only begins the load if the elements exists
93
+ if manager.el.length > 0
94
+ # set the event listeners
95
+ manager.startListeners()
96
+ # load the departments
97
+ manager.loadDepartments =>
98
+ manager.cascadeLoad()
96
99
 
97
100
  $(document).ready(ready)
98
101
  $(document).on('page:load', ready)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ubigeo_rails'
3
- s.version = '0.0.5'
3
+ s.version = '0.0.6'
4
4
  s.date = '2013-09-26'
5
5
  s.summary = "A ubigeo formtastic input and api for Rails"
6
6
  s.description = "A ubigeo wrapper"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubigeo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio García