summaryrefslogtreecommitdiff
path: root/app/controllers/profile_controller.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-11-21 15:01:40 -0500
committerRobert Speicher <rspeicher@gmail.com>2012-11-21 15:01:40 -0500
commit30a66c065a14be05f05099118938fb20c8989b3e (patch)
treec559b7110b6fc6f8c80771dabe744c3d234c403a /app/controllers/profile_controller.rb
parent00464099704ec16ad64faa3fe8c19d931ee7037a (diff)
downloadgitlab-ce-30a66c065a14be05f05099118938fb20c8989b3e.tar.gz
Improve user feedback on the Profile > Design page
- Header changes immediately without a page reload - Lets the user know that we actually saved their setting when changed
Diffstat (limited to 'app/controllers/profile_controller.rb')
-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