summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-06 00:48:44 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-06 00:48:44 +0000
commit270b559d362a39a8a9594f5fe6a10804e4653af1 (patch)
treee55e44234390aa81b3eaa15acaca11c42e31a8fc /app
parentd771fa92892a8835168856b8a148d05b550440dc (diff)
downloadredmine-270b559d362a39a8a9594f5fe6a10804e4653af1.tar.gz
redmine-270b559d362a39a8a9594f5fe6a10804e4653af1.zip
Refocus the related issue field after submitting an issue. #6275
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4065 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/_relations.rhtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/issues/_relations.rhtml b/app/views/issues/_relations.rhtml
index 71eaaa673..5b27fa6a5 100644
--- a/app/views/issues/_relations.rhtml
+++ b/app/views/issues/_relations.rhtml
@@ -28,6 +28,7 @@
<% remote_form_for(:relation, @relation,
:url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue},
:method => :post,
+ :complete => "Form.Element.focus('relation_issue_to_id');",
:html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %>
<%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
<% end %>