issue-destroy-reassign-time-autocomplete-v2.patch

fix: sugget issues only in the same project - Go MAEDA, 2016-12-30 06:38

Download (1.09 KB)

View differences:

app/views/issues/destroy.html.erb
8 8
<label><%= radio_button_tag 'todo', 'destroy', true %> <%= l(:text_destroy_time_entries) %></label><br />
9 9
<label><%= radio_button_tag 'todo', 'nullify', false %> <%= l(:text_assign_time_entries_to_project) %></label><br />
10 10
<label><%= radio_button_tag 'todo', 'reassign', false, :onchange => 'if (this.checked) { $("#reassign_to_id").focus(); }' %> <%= l(:text_reassign_time_entries) %></label>
11
<%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 6, :onfocus => '$("#todo_reassign").attr("checked", true);' %>
11
<span id="reassign_to"><%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 7, :onfocus => '$("#todo_reassign").attr("checked", true);' %></span>
12
<%= javascript_tag "observeAutocompleteField('reassign_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @issues.first.project)}')" %>
12 13
</p>
13 14
</div>
14 15
<%= submit_tag l(:button_apply) %>