Sha256: 54259e38e7435f6608741b1bdd385e41afd54e6b00acd3f1b5bea613fbf3aa2c

Contents?: true

Size: 356 Bytes

Versions: 148

Compression:

Stored size: 356 Bytes

Contents

var $uploadEl = $('[data-upload-id="<%= params[:upload_id] %>"]');

<% if @image.persisted? %>

  $uploadEl.trigger('clear');
  Spree.Views.Tables.EditableTable.append('<%= j render "image_row", image: @image %>');

<% else %>

  $uploadEl.find('error').removeClass('hidden').html('<%= j @image.errors.full_messages.join("<br>").html_safe %>');

<% end %>

Version data entries

148 entries across 148 versions & 2 rubygems

Version Path
solidus_backend-2.4.0 app/views/spree/admin/images/create.js.erb
solidus_backend-2.4.0.rc1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.4.0.beta1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.3.0 app/views/spree/admin/images/create.js.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/images/create.js.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/images/create.js.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/images/create.js.erb