cocoon 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.7
1
+ 1.2.8
@@ -99,11 +99,16 @@
99
99
  }, timeout);
100
100
  });
101
101
 
102
- $('.remove_fields.existing.destroyed').each(function(i, obj) {
103
- var $this = $(this),
104
- wrapper_class = $this.data('wrapper-class') || 'nested-fields';
105
102
 
106
- $this.closest('.' + wrapper_class).hide();
103
+ $(document).on("ready page:load", function() {
104
+ $('.remove_fields.existing.destroyed').each(function(i, obj) {
105
+ var $this = $(this),
106
+ wrapper_class = $this.data('wrapper-class') || 'nested-fields';
107
+
108
+ $this.closest('.' + wrapper_class).hide();
109
+ });
107
110
  });
108
111
 
109
112
  })(jQuery);
113
+
114
+
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "cocoon"
8
- s.version = "1.2.7"
8
+ s.version = "1.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Van der Auwera"]
12
- s.date = "2016-01-27"
12
+ s.date = "2016-02-25"
13
13
  s.description = "Unobtrusive nested forms handling, using jQuery. Use this and discover cocoon-heaven."
14
14
  s.email = "nathan@dixis.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-27 00:00:00.000000000 Z
12
+ date: 2016-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -334,7 +334,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
334
334
  version: '0'
335
335
  segments:
336
336
  - 0
337
- hash: -1378407659540710243
337
+ hash: -2685326948987823638
338
338
  required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  none: false
340
340
  requirements: