mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
use "do end" instead of {} at WatchersController
git-svn-id: http://svn.redmine.org/redmine/trunk@20258 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user