Makes subject field get focus on 'New issue' form (#2522).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2266 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-01-16 20:57:18 +00:00
parent ffa6c5fe3e
commit f6282f9600
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@
:with => "Form.serialize('issue-form')",
:complete => "Element.scrollTo('preview')"
}, :accesskey => accesskey(:preview) %>
<%= javascript_tag "Form.Element.focus('issue_subject');" %>
<% end %>
<div id="preview" class="wiki"></div>