summaryrefslogtreecommitdiffstats
path: root/app/views/issue_relations/create.js.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/issue_relations/create.js.erb')
-rw-r--r--app/views/issue_relations/create.js.erb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/issue_relations/create.js.erb b/app/views/issue_relations/create.js.erb
index a2446ab7f..03ba21975 100644
--- a/app/views/issue_relations/create.js.erb
+++ b/app/views/issue_relations/create.js.erb
@@ -1,5 +1,6 @@
-Element.update('relations', '<%= escape_javascript(render :partial => 'issues/relations') %>');
+$('#relations').html('<%= escape_javascript(render :partial => 'issues/relations') %>');
<% if @relation.errors.empty? %>
- $('relation_delay').value = ''
- $('relation_issue_to_id').value = ''
+ $('#relation_delay').val('');
+ $('#relation_issue_to_id').val('');
+ $('#relation_issue_to_id').focus();
<% end %>