Skip to content

Commit

Permalink
Last commit really didn't work as expected. This should do the trick.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyn Loughran committed Oct 13, 2008
1 parent 7bebb43 commit 3c66412
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/thumbnail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def edit
def update
message = {:notice => "Please give Panda a moment to finish moving your thumbnails around."}

render_then_call redirect(url(:video, @video.key), :message => message) do
run_later do
@video.thumbnail_position = params[:percentage]
@video.save
@video.clipping.set_as_default
Expand All @@ -47,6 +47,8 @@ def update
video.clipping.set_as_default
end
end

redirect(url(:video, @video.key), :message => message)
end

private
Expand Down

0 comments on commit 3c66412

Please sign in to comment.