summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 12:54:22 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 12:54:22 -0800
commit7392d28dcab4414dd9e1f6f019f92ccc5661c4fd (patch)
treef283896cf9d91f490db8eb248ea9faffc387e973 /app/controllers
parentd7ce2c5c0736de54478d96e8d11b3b9dc4fcb5e2 (diff)
parent30a66c065a14be05f05099118938fb20c8989b3e (diff)
downloadgitlab-ce-7392d28dcab4414dd9e1f6f019f92ccc5661c4fd.tar.gz
Merge pull request #2030 from tsigo/theme_feedback
Improve user feedback on the Profile > Design page
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/profile_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/profile_controller.rb b/app/controllers/profile_controller.rb
index 38cfa896b11..5f8b11fdded 100644
--- a/app/controllers/profile_controller.rb
+++ b/app/controllers/profile_controller.rb
@@ -9,7 +9,11 @@ class ProfileController < ApplicationController
def update
@user.update_attributes(params[:user])
- redirect_to :back
+
+ respond_to do |format|
+ format.html { redirect_to :back }
+ format.js
+ end
end
def token