activeadmin_polymorphic 0.3.3 → 0.3.4

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: cfc8dbe638139a67c254bc86062ba09d3b55c15b
4
- data.tar.gz: d213f52a8bda4ca498adb0cdc6fe90f93643c671
3
+ metadata.gz: da7ac49dfde197907145a1a310e015bb25a1c0e0
4
+ data.tar.gz: 54e5f2d90df40d8c8731605a3b7cf5ecb2933554
5
5
  SHA512:
6
- metadata.gz: 3b07c27e9a6f15e31691526388f4d1d4757dced9906f6a9c9c43392e8edda671f521ba34c8333219f24c2aec664fec089925257d25350f2900e2aabccceae425
7
- data.tar.gz: 236b5622bdf0c31f3a67e1479cf9d759f701e9fd393ce6f85f131d31e3986173f64058e727cf8351d8a38c333ada1cce5813c23f0f5afe63cfecd15e9ede54c7
6
+ metadata.gz: 1fb3b7bce121b576871e4600b0dc20ff59ceeb8e57885dca54923df7727e003dd3a4e5d3a38d5dc12a2211c37eb5778f17407b2121006f5deecf1aeeae74fb11
7
+ data.tar.gz: a7199a7aab10e3b83b8043cc09f20e061c2c9c0f54919be524c0e39c315ce39829d1c7a975d7600bfb0b1b3fd119b158aeeba8b6f9ca7cc1d0ecf431e1fbad13
@@ -150,6 +150,7 @@ window.extractAndInsertForm = (url, target) ->
150
150
  target.prepend form
151
151
 
152
152
  container.trigger "polymorphic_has_many_form:inserted", [form]
153
+ $(target).find('.has_many_container').trigger('has_many_add:after')
153
154
  error: (xhr, status, error) ->
154
155
  stop_loading_indicator(target, spinner)
155
156
 
@@ -169,6 +170,7 @@ window.loadErrors = (target) ->
169
170
  $(target).find('fieldset').replaceWith(fieldset)
170
171
  container = $(target).closest '.polymorphic_has_many_container'
171
172
  container.trigger "polymorphic_has_many_form:inserted", [ target ]
173
+ $(target).find('.has_many_container').trigger('has_many_add:after')
172
174
 
173
175
  window.remoteSubmit = (target, callback) ->
174
176
  action = $(target).attr('action')
@@ -1,3 +1,3 @@
1
1
  module ActiveadminPolymorphic
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
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.3
4
+ version: 0.3.4
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: 2016-02-16 00:00:00.000000000 Z
12
+ date: 2016-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spinjs-rails