annotate .svn/pristine/f5/f596fb5452ef6204bb08e656215fd3e293bf5fbb.svn-base @ 1524:82fac3dcf466
redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Thu, 11 Sep 2014 10:24:38 +0100 |
parents |
038ba2d95de8 |
children |
|
rev |
line source |
Chris@1296
|
1 <%= error_messages_for 'relation' %>
|
Chris@1296
|
2
|
Chris@1296
|
3 <p><%= f.select :relation_type, collection_for_relation_type_select, {}, :onchange => "setPredecessorFieldsVisibility();" %>
|
Chris@1296
|
4 <%= l(:label_issue) %> #<%= f.text_field :issue_to_id, :size => 10 %>
|
Chris@1296
|
5 <span id="predecessor_fields" style="display:none;">
|
Chris@1296
|
6 <%= l(:field_delay) %>: <%= f.text_field :delay, :size => 3 %> <%= l(:label_day_plural) %>
|
Chris@1296
|
7 </span>
|
Chris@1296
|
8 <%= submit_tag l(:button_add) %>
|
Chris@1296
|
9 <%= link_to_function l(:button_cancel), '$("#new-relation-form").hide();'%>
|
Chris@1296
|
10 </p>
|
Chris@1296
|
11
|
Chris@1296
|
12 <%= javascript_tag "observeAutocompleteField('relation_issue_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil))}')" %>
|
Chris@1296
|
13
|
Chris@1296
|
14 <%= javascript_tag "setPredecessorFieldsVisibility();" %>
|