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_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/views/spree/admin/images/create.js.erb
solidus_backend_devise_token_auth-2.8.0.alpha.2 app/views/spree/admin/images/create.js.erb
solidus_backend-2.7.0 app/views/spree/admin/images/create.js.erb
solidus_backend-2.6.1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.6.0 app/views/spree/admin/images/create.js.erb
solidus_backend-2.6.0.rc1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.5.0 app/views/spree/admin/images/create.js.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.5.0.beta2 app/views/spree/admin/images/create.js.erb
solidus_backend-2.5.0.beta1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.4.2 app/views/spree/admin/images/create.js.erb
solidus_backend-2.4.1 app/views/spree/admin/images/create.js.erb
solidus_backend-2.3.1 app/views/spree/admin/images/create.js.erb