activeadmin-selleo-cms 0.0.34 → 0.0.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,12 @@
1
1
  <% if resource.valid? %>
2
- <% if resource.assetable.images? %>
2
+ <% if resource.assetable.activeadmin_selleo_cms_section.images? %>
3
3
  $('<%= j render partial: 'image', locals: { image: resource } %>').appendTo('ol#assets');
4
4
  $('#new_image').replaceWith('<%= j render partial: '/admin/section_translations/images_form', locals: { image: ActiveadminSelleoCms::Image.new, section_translation: resource.assetable } %>');
5
5
  <% elsif resource.assetable.activeadmin_selleo_cms_section.image? %>
6
6
  $('#file-manager').html('<%= j render partial: 'form' %>');
7
7
  <% end %>
8
8
  <% else %>
9
- <% if resource.assetable.images? %>
9
+ <% if resource.assetable.activeadmin_selleo_cms_section.images? %>
10
10
  $('#new_image').replaceWith('<%= j render partial: '/admin/section_translations/images_form', locals: { image: resource, section_translation: resource.assetable } %>');
11
11
  <% elsif resource.assetable.activeadmin_selleo_cms_section.image? %>
12
12
  $('#file-manager').html('<%= j render partial: 'form' %>');
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSelleoCms
2
- VERSION = "0.0.34"
2
+ VERSION = "0.0.35"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-selleo-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.34
4
+ version: 0.0.35
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: