diff --git a/app/controllers/pools_controller.rb b/app/controllers/pools_controller.rb index 6036f3fda..7c3aeb6e5 100644 --- a/app/controllers/pools_controller.rb +++ b/app/controllers/pools_controller.rb @@ -68,6 +68,8 @@ class PoolsController < ApplicationController @pool = Pool.find(params[:id]) @version = PoolVersion.find(params[:version_id]) @pool.revert_to!(@version) - respond_with(@pool, :notice => "Pool reverted") + respond_with(@pool) do |format| + format.js + end end end diff --git a/app/views/pool_versions/index.html.erb b/app/views/pool_versions/index.html.erb index dafc759b7..4fb00410b 100644 --- a/app/views/pool_versions/index.html.erb +++ b/app/views/pool_versions/index.html.erb @@ -33,7 +33,7 @@