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-4.4.1 app/views/spree/admin/images/create.js.erb
solidus_backend-4.4.0 app/views/spree/admin/images/create.js.erb
solidus_backend-4.3.4 app/views/spree/admin/images/create.js.erb
solidus_backend-4.2.4 app/views/spree/admin/images/create.js.erb
solidus_backend-4.1.5 app/views/spree/admin/images/create.js.erb
solidus_backend-4.3.3 app/views/spree/admin/images/create.js.erb
solidus_backend-4.3.2 app/views/spree/admin/images/create.js.erb
solidus_backend-4.1.4 app/views/spree/admin/images/create.js.erb
solidus_backend-4.3.1 app/views/spree/admin/images/create.js.erb
solidus_backend-4.3.0 app/views/spree/admin/images/create.js.erb
solidus_backend-4.2.3 app/views/spree/admin/images/create.js.erb
solidus_backend-4.1.3 app/views/spree/admin/images/create.js.erb
solidus_backend-4.0.4 app/views/spree/admin/images/create.js.erb
solidus_backend-3.4.6 app/views/spree/admin/images/create.js.erb
solidus_backend-4.0.3 app/views/spree/admin/images/create.js.erb
solidus_backend-4.1.2 app/views/spree/admin/images/create.js.erb
solidus_backend-4.2.2 app/views/spree/admin/images/create.js.erb
solidus_backend-3.4.5 app/views/spree/admin/images/create.js.erb
solidus_backend-4.2.1 app/views/spree/admin/images/create.js.erb
solidus_backend-4.2.0 app/views/spree/admin/images/create.js.erb