Permalink
Browse files

Reload parent page on settings saved

  • Loading branch information...
1 parent 95e6b06 commit 0988cce0b7f22b7361524a2556133f0bce20fb3d Angelo Grossini committed Jan 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/admin/memberships_controller.rb
@@ -32,7 +32,8 @@ def save_settings
value.reject!{|v| !v || v == ''} if value.is_a?(Array)
RefinerySetting.set(key, value)
end if params[:settings].present?
- render :text => "<script>parent.window.$('.ui-dialog .ui-dialog-titlebar-close').trigger('click');</script>"
+ #render :text => "<script>parent.window.$('.ui-dialog .ui-dialog-titlebar-close').trigger('click');</script>"
+ render :text => "<script>parent.window.location.reload();</script>"
end
private

0 comments on commit 0988cce

Please sign in to comment.