Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Glen committed Dec 10, 2015
1 parent 6a35652 commit 22019f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/smithy/assets/create.js.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if @asset.new_record? %>
alert("Failed to upload painting: <%= j @asset.errors.full_messages.join(', ').html_safe %>");
<% else %>
<% @asset.reload %>
$("#asset-thumbnails").prepend("<%= j render(@asset) %>");
<%# re-find the asset to load up the proper paths %>
$("#asset-thumbnails").prepend("<%= j render(Smithy::Asset.find(@asset.id)) %>");
<% end %>

0 comments on commit 22019f0

Please sign in to comment.