Project

General

Profile

Patch #15833 » 0001-Adding-watcher-icon-for-new-issue-form.patch

the patch against trunk - Lukas Zapletal, 2014-01-09 15:08

View differences:

app/views/issues/new.html.erb
28 28

  
29 29
    <% if @issue.safe_attribute? 'watcher_user_ids' -%>
30 30
      <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
31
      <span id="watchers_inputs">
32
        <%= watchers_checkboxes(@issue, @available_watchers) %>
33
      </span>
31
      <%= link_to_function image_tag('edit.png'), '$(this).hide(); $("#issue_watchers").show()' %>
32
      <%= content_tag 'span', :id => "issue_watchers", :style => 'display:none' do %>
33
        <span id="watchers_inputs">
34
          <%= watchers_checkboxes(@issue, @available_watchers) %>
35
        </span>
36
      <% end %>
34 37
      <span class="search_for_watchers">
35 38
      <%= link_to l(:label_search_for_watchers),
36 39
                  {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
(1-1/2)