diff options
Diffstat (limited to 'app/views/watchers/destroy.js.erb')
-rw-r--r-- | app/views/watchers/destroy.js.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/watchers/destroy.js.erb b/app/views/watchers/destroy.js.erb index 413797dc2..12553e8e5 100644 --- a/app/views/watchers/destroy.js.erb +++ b/app/views/watchers/destroy.js.erb @@ -1,3 +1,4 @@ <% if @watchables.size == 1 %> -$('#watchers').html('<%= escape_javascript(render(:partial => 'watchers/watchers', :locals => {:watched => @watchables.first})) %>'); + <%= render(:partial => 'watchers/set_watcher', + :locals => {:watched => @watchables, :user => User.current}) %> <% end %> |