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 +4 -4
- data/app/assets/javascripts/ubigeo.js.coffee +8 -5
- data/ubigeo_rails.gemspec +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: 173b7db2453025ac6ee9663cd76022db456e8e37
|
4
|
+
data.tar.gz: e6e7496ed5ebe16504f13a4517d54882761efc51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
manager.
|
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)
|
data/ubigeo_rails.gemspec
CHANGED