Project

General

Profile

Patch #24692 » issue-destroy-reassign-time-autocomplete.patch

Anonymous, 2016-12-26 16:58

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, :scope => Setting.cross_project_subtasks)}')" %>
12 13
</p>
13 14
</div>
14 15
<%= submit_tag l(:button_apply) %>
(1-1/2)