From 5959023b5902b0773da0dfaa4aa199f612da9acb Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Thu, 9 Jan 2014 15:08:08 +0100 Subject: [PATCH] Adding watcher icon for new issue form --- app/views/issues/new.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index feb9e79..90f125b 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -28,9 +28,12 @@ <% if @issue.safe_attribute? 'watcher_user_ids' -%>

- - <%= watchers_checkboxes(@issue, @available_watchers) %> - + <%= link_to_function image_tag('edit.png'), '$(this).hide(); $("#issue_watchers").show()' %> + <%= content_tag 'span', :id => "issue_watchers", :style => 'display:none' do %> + + <%= watchers_checkboxes(@issue, @available_watchers) %> + + <% end %> <%= link_to l(:label_search_for_watchers), {:controller => 'watchers', :action => 'new', :project_id => @issue.project}, -- 1.8.4.2