summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/watchers_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb
index 567d61f0c..645e60fe2 100644
--- a/app/controllers/watchers_controller.rb
+++ b/app/controllers/watchers_controller.rb
@@ -111,10 +111,10 @@ class WatchersController < ApplicationController
watchable.set_watcher(user, watching)
end
respond_to do |format|
- format.html {
+ format.html do
text = watching ? 'Watcher added.' : 'Watcher removed.'
redirect_to_referer_or {render :html => text, :status => 200, :layout => true}
- }
+ end
format.js { render :partial => 'set_watcher', :locals => {:user => user, :watched => watchables} }
end
end