]> source.dussan.org Git - redmine.git/commitdiff
Fix: Issue id input should get focus after adding related issue (#22023).
authorGo MAEDA <maeda@farend.jp>
Tue, 15 May 2018 00:20:47 +0000 (00:20 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 15 May 2018 00:20:47 +0000 (00:20 +0000)
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17337 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issue_relations/create.js.erb

index 0c2e036cc5c18765e164df0b937d59ddce645e8d..1572a910e9ad304a9c338882919f39d8a91443c0 100644 (file)
@@ -2,6 +2,6 @@ $('#relations').html('<%= escape_javascript(render :partial => 'issues/relations
 <% if @relation.errors.empty? %>
   $('#relation_delay').val('');
   $('#relation_issue_to_id').val('');
-  $('#relation_issue_to_id').focus();
 <% end %>
 $('#new-relation-form').show();
+$('#relation_issue_to_id').focus();