app/views/spina/admin/attachments/create.js.erb in spina-0.6.12 vs app/views/spina/admin/attachments/create.js.erb in spina-0.6.13
- old
+ new
@@ -1,5 +1,3 @@
-<% if @attachment.new_record? %>
- alert("Document kon niet worden verwerkt: <%= j @attachment.errors.full_messages.join(', ').html_safe %>");
-<% else %>
+<% unless @attachment.new_record? %>
$(".table-prepend-document").prepend("<%= j render partial: 'spina/admin/attachments/attachment', object: @attachment %>");
<% end %>