Skip to content

Commit

Permalink
prepend instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Glen committed Dec 10, 2015
1 parent 4b47b3b commit cc1581a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/smithy/assets/create.js.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% if @asset.new_record? %>
alert("Failed to upload painting: <%= j @asset.errors.full_messages.join(', ').html_safe %>");
<% else %>
$("#asset-thumbnails").append("<%= j render(@asset) %>");
$("#asset-thumbnails").prepend("<%= j render(@asset) %>");
<% end %>

0 comments on commit cc1581a

Please sign in to comment.