diff options
author | Go MAEDA <maeda@farend.jp> | 2021-07-25 02:27:54 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-07-25 02:27:54 +0000 |
commit | 37d3f3faa9a639288e3c056d688d0114e943d70c (patch) | |
tree | c6bd97ce245970bae425b9cf64a52667dbfe224c /app/views/watchers/create.js.erb | |
parent | b50973196517d5887b938ff9152fb6647a7cc197 (diff) | |
download | redmine-37d3f3faa9a639288e3c056d688d0114e943d70c.tar.gz redmine-37d3f3faa9a639288e3c056d688d0114e943d70c.zip |
Add watching users to a ticket should switch "watch" link to "unwatch" if own user was added (#15634).
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@21079 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/watchers/create.js.erb')
-rw-r--r-- | app/views/watchers/create.js.erb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/watchers/create.js.erb b/app/views/watchers/create.js.erb index 7541d20ff..b0421bc3a 100644 --- a/app/views/watchers/create.js.erb +++ b/app/views/watchers/create.js.erb @@ -4,8 +4,6 @@ $('#ajax-modal').html( :locals => {:watchables => @watchables, :users => @users})) %>'); <% 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 %> |