diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-20 20:43:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-20 20:43:28 +0000 |
commit | aca31973c28110047efd30537d5266b4c8987080 (patch) | |
tree | a107a050b2678f9dec581658c21807806406f50f /app/helpers/watchers_helper.rb | |
parent | f8c649320f849dec288407a771d446108dc40931 (diff) | |
download | redmine-aca31973c28110047efd30537d5266b4c8987080.tar.gz redmine-aca31973c28110047efd30537d5266b4c8987080.zip |
Fixed that delete watcher link was broken by r11290 (#13231).
Deleting a watcher now use DELETE /watchers instead of POST /watchers/destroy.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11443 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/watchers_helper.rb')
-rw-r--r-- | app/helpers/watchers_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index 4aab507bd..d7384e7a1 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -63,11 +63,11 @@ module WatchersHelper :user_id => user} s << ' ' s << link_to(image_tag('delete.png'), url, - :remote => true, :method => 'post', :style => "vertical-align: middle", :class => "delete") + :remote => true, :method => 'delete', :style => "vertical-align: middle", :class => "delete") end - content << content_tag('li', s) + content << content_tag('li', s, :class => "user-#{user.id}") end - content.present? ? content_tag('ul', content) : content + content.present? ? content_tag('ul', content, :class => 'watchers') : content end def watchers_checkboxes(object, users, checked=nil) |