activeadmin_polymorphic 0.3.1 → 0.3.2

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: 7aafdbf89622df0f6b24299e8c0520275d683cf3
4
- data.tar.gz: 629df421298509cbcc8f4c6502620a1ef9c51628
3
+ metadata.gz: 6092c329650bcd681a2b77fe13f99ac2ae24f4bf
4
+ data.tar.gz: 5f89e7340a30844ddf70c927df66d9db8469cff1
5
5
  SHA512:
6
- metadata.gz: db6ff0fb8a8c5769fabda0abdec7e09acd74b0eb1aeb614200710125aafe52563774a5f527e454c07f6f420ac00716074f26a7733dbba2efdbdcac4584131a26
7
- data.tar.gz: bd1a2c334625305782a29bbce7a7e3f66a53045fa39b93b8931327fdeb6d40f963e77815c778bd174f3e244f65bdba5b01c0489d8a56f60d3e5c8bf39af620ff
6
+ metadata.gz: c043cc98408063b0063bc2cdd161420bcb0dfa05606d444fcadbd0b8dcbe612eb88c55c7b5b931d5f4c487c5e1ea2a633142dc994a79cd18b947d07748fd93fa
7
+ data.tar.gz: e72e2a427376e8d67db9148e4d958ba6cdea1b113a720b9a37fe3138286e87b06e1d57376a9c3480d6b89e66d9995db7c2ac6b857d67cb2411c59c995a277e48
@@ -161,10 +161,12 @@ window.loadErrors = (target) ->
161
161
  # duplicates method above. refactor using callbacks
162
162
  elements = $(data)
163
163
  form = $('#main_content form', elements).first()
164
- $(form).find('.actions').remove()
164
+ fieldset = form.find('fieldset').first()
165
+
166
+ $(fieldset).find('.actions').remove()
165
167
  $(form).on 'submit', -> return false
166
168
 
167
- $(target).replaceWith(form)
169
+ $(target).find('fieldset').replaceWith(fieldset)
168
170
  container = $(form).closest '.polymorphic_has_many_container'
169
171
  container.trigger "polymorphic_has_many_form:inserted", [ form ]
170
172
 
@@ -1,3 +1,3 @@
1
1
  module ActiveadminPolymorphic
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_polymorphic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Sergeev
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-12 00:00:00.000000000 Z
12
+ date: 2016-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spinjs-rails
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.4.5
91
+ rubygems_version: 2.2.2
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: HasMany polymoprhic support for active admin.