|
|
|
@ -30,8 +30,13 @@
|
|
|
|
|
<% if @issue.safe_attribute? 'subject' %>
|
|
|
|
|
<p><%= f.text_field :subject, :size => 80, :maxlength => 255, :required => true, :style => "font-size:small" %></p>
|
|
|
|
|
<!--Added by young-->
|
|
|
|
|
<%= javascript_tag "observeAutocompleteField('issue_subject', '#{escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil))}')" %>
|
|
|
|
|
<!--Ended by young-->
|
|
|
|
|
<%= javascript_tag do %>
|
|
|
|
|
observeAutocompleteField('issue_subject', '<%= escape_javascript auto_complete_issues_path(:project_id => @project,:scope => (Setting.cross_project_issue_relations? ? 'all' : nil)) %>',
|
|
|
|
|
{ select: function(event, ui) {
|
|
|
|
|
$('input#issue_subject').val(ui.item.value);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|