diff options
Diffstat (limited to 'app/views/glsa/_comment.html.erb')
-rw-r--r-- | app/views/glsa/_comment.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/glsa/_comment.html.erb b/app/views/glsa/_comment.html.erb index 059f4a0..20151bc 100644 --- a/app/views/glsa/_comment.html.erb +++ b/app/views/glsa/_comment.html.erb @@ -1,8 +1,8 @@ <li class="comment <%= @css_class || cycle("odd-bright", "") %>"> <input type="hidden" name="commentread-<%= comment.id %>" id="commentread-<%= comment.id %>" value="<%= comment.read ? "true" : "false" %>" /> <span class="comment-toolbox"> - <%= link_to_function(comment.read ? image_tag("icons/flag-green.png", :title => 'done') : image_tag("icons/flag.png", :title => 'todo'), - "toggleCommentRead(#{comment.id})", + <%= link_to(comment.read ? image_tag("icons/flag-green.png", :title => 'done') : image_tag("icons/flag.png", :title => 'todo'), nil, + :onclick => "toggleCommentRead(#{comment.id})", :title => 'Toggle read status', :id => "commentflag-#{comment.id}") %> </span> |