active_admin-cep_auto_complete 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4c35aa68d64d14e9f72573091af1b1d5d6201b6
|
|
4
|
+
data.tar.gz: 8afaa3942ba1e61965ff733da421433316d6eef3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74330aa947006fcb8b2bdccbf2b23e1ca98047837da26218126d09317cf337a9ab16c57e5716b115e92a5a5a8b2313e125dbb9469a1ad29581e366aa17a5db25
|
|
7
|
+
data.tar.gz: 57ac10a7c0bcf80114289d4e697196fc0563afd8cf1e5ae4e4c03f37a869c81fd87639690b4ecac062cd2c0223347a75110ee5b77f47b28564c96d005bf1bc21
|
|
@@ -105,6 +105,15 @@
|
|
|
105
105
|
|
|
106
106
|
$(document).ready(function() {
|
|
107
107
|
CepInput.attach('.cep-auto-complete');
|
|
108
|
+
|
|
109
|
+
$('.has_many_add').each(function() {
|
|
110
|
+
var self = $(this);
|
|
111
|
+
var parent = self.parent('.has_many_container');
|
|
112
|
+
|
|
113
|
+
parent.on('has_many_add:after', function(e, fieldset) {
|
|
114
|
+
CepInput.attach($(fieldset).find('.cep-auto-complete'));
|
|
115
|
+
});
|
|
116
|
+
});
|
|
108
117
|
});
|
|
109
118
|
|
|
110
119
|
scope.CepInput = CepInput;
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_admin-cep_auto_complete
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dhyego Fernando
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|