]> source.dussan.org Git - redmine.git/commitdiff
Refocus the related issue field after submitting an issue. #6275
authorEric Davis <edavis@littlestreamsoftware.com>
Mon, 6 Sep 2010 00:48:44 +0000 (00:48 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Mon, 6 Sep 2010 00:48:44 +0000 (00:48 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4065 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_relations.rhtml

index 71eaaa6737c1e0753a52359d1591375b090dbc70..5b27fa6a577e3a3c7a63887d627601bd9f6948cc 100644 (file)
@@ -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 %>